Cascading style sheets

Cascading style sheets

Cascading Style Sheets (CSS) is the styling language developed by the [[World Wide Web Consortium|W3C]] for use in conjunction with a markup language such as [[HTML]] or [[XHTML]]. Its power is in the fact that the information can be stored in various scopes, and the cumulative effect of all styling rules is computed before rendering the final design in the browser. When used with sufficiently semantic markup, it is a very flexible way to completely style a website, separating the presentational details from the content itself. While CSS is an incredibly powerful language, it still has a few drawbacks. One of these is the fact that the most widely used web browser, [[Internet Explorer]], renders CSS2 differently than other browsers which follow the W3C standards much more closely. Sometimes the differences are quite subtle, and other times it is a dramatic divergence from the expected behavior. This divergence can lead to some developers going out of their way to serve different versions of content to different browsers, instead of being able to provide a single interoperable document to all devices. While there is no quantitative test, a person curious about the support of CSS within whatever browser they choose to use can see how well it renders today's styling techniques by loading the [[Acid2]] test on [[http://webstandards.org]]

Our Practices

We construct all of our web sites with either HTML or XHTML and CSS. After the site is developed, changes can be easily made to the look of the site, whether on one page or all, with the same amount of effort. Also, by storing the style information outside the HTML document, it allows capable web browsers to cache the information temporarily, saving high-traffic sites a few kilobytes per page load.

Further Reading

W3C CSS1 W3C CSS2 [[http://www.csszengarden.com/|CSS Zen Garden]]

Related Posts

What Is A Website Style Guide And Why Do You Need One?

Brent Bice
Read more

Branding & Style Guides

Felipa Villegas
Read more

Drupal 7 Launch Party- Dallas Style!

Erin Tuohy
Read more

We Have Started the Journey of the Results Oriented Web Roadshow

Felipa Villegas
Read more

Collapsing Folders with Taxonomy and Views_tree

Randall Knutson
Read more

Google Analytics and Google Spreadsheets: Create Your Own Dashboard

Felipa Villegas
Read more