O'Reilly logo

Microsoft® Start Here!™ Learn JavaScript by Steve Suehring

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Styling with JavaScript

After completing this chapter, you will be able to

  • View CSS properties with JavaScript

  • Set CSS properties with JavaScript

  • View and set current CSS classes with JavaScript

  • Use advanced effects and widgets from jQuery UI

CASCADING STYLE SHEETS (CSS) ARE USED to provide styling information for webpages. You see CSS all over but don’t even think about it. That fancy background color on a webpage? CSS. Adding style to make web forms look good? CSS. Changing fonts and font sizes? CSS. With CSS, it’s possible to create complex layouts while still making user interaction easy and intuitive.

Both JavaScript and jQuery have functions and ways in which to manipulate CSS and page styling. The chapter will primarily look at how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required