O'Reilly logo

Sams Teach Yourself XML in 24 Hours, Third Edition by Michael Morrison

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 10. Styling XML Content with CSS

 

It’s not an optical illusion; it just looks like one.

 
 --Phil White

Fortunately, due to its relative simplicity, there are no optical illusions associated with CSS (Cascading Style Sheets); all of the visual “trickery” in CSS is made possible with clear and concise style properties. CSS allows you to attach formatting styles to individual elements within an XML document. These styles are then used to determine how the elements in the document are rendered for display within a web browser. Even though the XML language doesn’t inherently include any mechanism for defining how a document looks, CSS makes it possible to add a view to XML documents. This hour explores CSS inside and out, including how to create ...

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