XML technologies / CSS / Advanced websites with CSS / Putting CSS in perspective / What is CSS actually for?
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
As discussed in detail in An initial overview, one of the main advantages of CSS is separating content from the presentation of a website. This separation matters because authors can concentrate solely on their text, photographs and graphics, leaving content arrangement and the site’s appearance and behavior to designers and programmers.
Also note that CSS can determine a site’s appearance but not necessarily its behavior. There are exceptions here too, because the boundary between appearance and behavior is necessarily blurred.
In the book’s third part, when building layouts, we will see how CSS can effectively create context-sensitive menus and other interactive interface elements. You may be familiar with interfaces whose interactivity relies mainly on JavaScript or another programming language. I will show CSS techniques for more creative navigation without writing a single line of program code.
The latter part of the book provides detailed information and examples for changing colors, fonts, text and graphics with CSS. Here, I only want to give an initial impression of what stylesheets can do, without explaining everything in detail. For now, the aim is to whet your appetite and show CSS possibilities.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top