Skip to Main Content
Painting the Web
book

Painting the Web

by Shelley Powers
May 2008
Beginner content levelBeginner
656 pages
17h 41m
English
O'Reilly Media, Inc.
Content preview from Painting the Web

Chapter 8. CSS Über Zone

You've worked with CSS for a while, and feel pretty confident of what you're doing. Then you reach a site that has some slick design work and open up its stylesheet to see how the elements are styled. You read through the sheet, becoming increasingly mystified at all the weird and strange notation. Congratulations: you've just entered the CSS Über zone.

Probably the most revolutionary specification to come out of the W3C—after HTML, of course—is Cascading Style Sheets (CSS). With CSS, we finally had a way to define a stylesheet in one file and use it in hundreds of pages without having to litter font tags all throughout our web page content. Even though "style" is often about text, CSS can enhance your graphics or spare you from creating them.

The introduction of CSS hasn't been without problems, though. Even now, a decade after the first release of the specification, we still have to deal with browser differences. In addition, there are some aspects of CSS that aren't necessarily trivial. Using CSS to control multiple columns is always a bit of a challenge, especially when you get a site looking just right in one browser and it looks like garbage in another. Still, CSS has opened up a world of design possibilities and simplified web site maintenance at the same time. You're just not going to find many modern sites without at least some CSS.

CSS isn't complicated, but it is extensive. Entire books have been written about CSS that don't include all the many ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Mastering PHP 7

Mastering PHP 7

Branko Ajzele

Publisher Resources

ISBN: 9780596515096Supplemental ContentErrata Page