Examples from Chapter 12 of The XML Bible, Cascading Style Sheets Level 1
Listing 12-1:
poem.css
Listing 12-2:
Darest thou now O soul
by Walt Whitman in XML
Figure 12-2:
The first chapter of the
Book of Genesis
in Latin
Listing 12-3:
A bibliography in XML with three CITATION elements
Listing 12-4:
A style sheet that colors elements in the TURING class blue
Listing 12-5:
A style sheet that makes the CITATION element with ID C3 bold
Listing 12-6:
A style sheet for poems with comments
Listing 12-7:
A synopsis of Shakespeare's
Twelfth Night
in XML
Listing 12-8:
A very simple style sheet for the synopsis of a play
Listing 12-9:
A style sheet for a play synopsis that uses list items
Listing 12-10:
A style sheet for a play synopsis that uses the list-style-image property
Listing 12-11:
The Altar
by George Herbert in XML
Listing 12-12:
A style sheet for whitespace-sensitive poetry
Listing 12-13:
A style sheet for the synopsis with font shorthand
Listing 12-14:
A party invitation in XML
Listing 12-15:
The synopsis style sheet with text properties
Listing 12-16:
A party invitation with an empty IMAGE element
Listing 12-17:
The synopsis style sheet with text properties
Copyright 1999
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified at April 20, 1999