HTML and CSS Reference
In-Depth Information
$MAIN
\*------------------------------------*/
html {
styles
}
body {
styles
}
/*------------------------------------*\
$TYPE
\*------------------------------------*/
And so on.
This way, you can easily read the contents and jump straight to a particular
section by performing a quick search (Command/Control + F). Prepending
each heading with a dollar sign makes it unique, so that a search will yield
only headings.
THE “SHARED” SECTION
All CSS files should have a section for sharing, where you tether selectors to
a single declaration, rather than write the same declaration over and over.
So, instead of writing this…
/*------------------------------------*\
$TYPE
\*------------------------------------*/
h1 {
font-size: 2em;
color: #c00;
}
h2 {
font-size: 1.5em;
color: #c00;
Search WWH ::




Custom Search