Prev | Current Page 79 | Next

Charles Wyke-Smith

"Stylin' with CSS: A Designer's Guide 2nd Edition"

This sidebar is a simpli?¬? ed, if slightly less accurate, version
that will serve you until you have done some CCS coding and
really need the details.
As its name suggests, the Cascade in Cascading Style Sheets involves
styles falling down from one level of the hierarchy of your document
to the next, and its function is to let the browser decide which of the
many possible sources of a particular property for a particular tag is
the one to use.
The Cascade is a powerful mechanism. Understanding it helps
you write CSS in the most economical and easily editable way and
enables you to create documents that are viewed as you mean
them to be seen, while leaving appropriate control of aspects of the
document??™s display, such as overall font sizes, with users who have
special needs.
Sources of Styles
Styles can come from many places. First, it??™s not hard to accept that
there must be a browser style sheet (the default style sheet) hidden
away inside the browser, because every tag manifests styles without
you writing any. For example, h1 tags create large bold type, em tags
create italicized type, and lists are indented and have bullets for each
item, all automatically. You don??™t style anything to make this formatting
happen.
If you have Firefox installed on your computer, search for the ?¬? le
html.css, and you can then see the Firefox default browser style
sheet.


Pages:
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91