CSS Master

(Primo) #1
Conventions Used
You'llnoticethatwe'veusedcertaintypographicandlayoutstylesthroughoutthis
booktosignifydifferenttypesofinformation.Lookoutforthefollowingitems.

Code Samples
Codeinthisbookisdisplayedusingafixed-widthfont,likeso:

<h1>A Perfect Summer's Day</h1>
<p>It was a lovely day for a walk in the park. The birds
were singing and the kids were all back at school.</p>

Ifthecodeistobefoundinthebook'scodearchive,thenameofthefilewillappear
atthetopoftheprogramlisting,likethis:

example.css
.footer {
background-color: #CCC;
border-top: 1px solid #333;
}

Ifonlypartofthefileisdisplayed,thisisindicatedbythewordexcerpt:

example.css (excerpt)
border-top: 1px solid #333;

Ifadditionalcodeistobeinsertedintoanexistingexample,thenewcodewillbe
displayedinbold:

function animate() {
new_variable = "Hello";
}

Where existing code is required for context, rather than repeat all of it, M will be
displayed:

xviii

Free download pdf