Cascading Style Sheets Basics (continued)
Defining a Separate CSS File
It's sometimes handy to isolate your styles in a separate file, particularly if you have a lot of them. This approach makes it relatively easy to standardize the appearance of your web pages site-wide. To create a CSS file, just type the style definitions in a separate document, making sure you type only the style definitions, not the <STYLE> tags or anything else. Save the file with an extension of .css. For example, yourcssfile.css.
Referring to the CSS File
The trick to referring to an external CSS is this line:
<LINK REL=STYLESHEET TYPE="text/css" HREF="yourcssfile.css">
The <LINK> tag provides a connection between the document being displayed and the external file. You can put a complete URL in the quotes following the HREF attribute this example assumes the file is in the same directory as the document that refers to it.
Defining a Style Class
Here's a trick that makes it easy to apply a style to any passage of HTML code you like. Define a CSS that looks like this:
Put them to use by applying them in an HTML document. Here is an example:
This Cascading Style Sheets tutorial was inspired and assisted by David Wall.
Read more info
The Internet Brothers have implemented hierarchical menus for navigation. Easier done than said. In our effort to be friendly to all browsers, the menu tree is functional with version 4 or greater of both the Netscape and Internet Explorer products.
As stated above, hovering over the button will open the menu for these browsers. But if you have an older product, don't fret, we'll send you to the scum page. Just click the button.
The hierarchical menus were created using Peter Belesis' © Dynomat DHTML scripting tool from Webreference. Give them a visit, you'll like what you learn.
Copyright © 1997-2004 Internet Brothers. All Rights Reserved. Really.