Prev | Current Page 64 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"


The cascade principle still applies; in other words, any rules in a second attached
style sheet override those in the one preceding it.
AN INTRODUCTION TO WEB DESIGN
17
1
?© Jon Hicks (www.hicksdesign.co.uk)
Creating boilerplates
Every web page looks different, just as every book or magazine is different from every
other one. However, under the hood there are often many similarities between sites, and
if you author several, you??™ll soon note that you??™re doing the same things again and
again. With that in mind, it makes sense to create some web page boilerplates??”starting
points for all of your projects. In the download files, available from the Downloads
section of the friends of ED website (www.friendsofed.com), there are two boilerplates
folders: basic-boilerplates and advanced-boilerplates. In basic-boilerplates, the
XHTML-basic.html web page is a blank XHTML Strict document, and in advancedboilerplates,
XHTML-extended.html adds some handy divs that provide a basic page
structure that??™s common in many web pages, along with some additions to the head section.
(The former is used as a quick starting point for many of the tutorials in this book.
The latter is perhaps a better starting point for a full website project.) The CSS-with-
ToC.css document in advanced-boilerplates uses CSS comments to create sections in
the document to house related CSS rules. This is handy when you consider that a CSS document
may eventually have dozens of rules in it??”this makes it easier for you to be able to
find them quickly.


Pages:
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76