|
||
|
|
||
|
|
The Fundamentals of Professional Web Sites |
|||
|
This Weeks: Features Step-by-Step: In the Beginning The Purpose The 13 Lucky Steps to Promoting a Web Site - Part 1 Reviews A Voice for Writers and Speakers Techniques |
|
TechniqueStyle Sheets for the Terminally ImpatientOkay, you say you want your pages to look good, but hate coding font styles over and over and over? Well, welcome to the external style sheet. The large majority of browsers support cascading style sheets. There are three ways to add style attributes to a tag under the current HTML and XHTML standards: inline styles, document-level styles and external style sheets. The fastest, easiest way to create a consistent style throughout your site is by linking to an external style sheet. I'll save all the gory details of style sheets for another time. An external style sheet is merely a text file containing the tag and its related attributes. It looks like this:
body {
color : #000;
We're in hurry here, lady, speed it up.First, you need a style sheet. I made one for you.
Next you need to add a link to the style sheet in your web page code.
That's it at least for basic styles. I've included a special style for navigation and copyright or anything else you want in a smaller font. It looks like this:
.navigation {
font-family : Arial, Verdana, Geneva, Helvetica,sans-serif;
font-size : 10pt;
line-height : 11pt;
}
|
|
|