Cascading Style Sheets & |
Cascading Style Sheets This link, <link rel="stylesheet" href="myfirstcss.css" type="text/css">, placed in the <head> of your web pages tells the browser to find the file "myfirstcss.css" and reference it for page formatting information. |
|
Here's a simple html document referencing my css. |
<html> |
Although most of these parameters are pretty self explanatory, let's break them down just for grins. | |
Open Style tag. |
<style type="text/css"> |
Defines the web pages body color & background tile if any. |
body { |
This how all those nifty colored scrollbars everyone is using is done.
(More on Colored Scrollbars) |
scrollbar-face-color: 6400CC; |
Defines page margins. |
margin-top: 10px; |
Defines the anchor text between the <a href> and </a> tags. |
a{color:black; text-decoration:none;} |
Defines the header text between the <h1> and </h1> tags. My browser, (IE) only sees up to 6 of these. They must be h1, h2, h3, h4, h5 & h6. |
h1 {font-family: verdana; font-size: 12px; color:black} |
Defines the text between the |
p.p1{ |
Close style tag |
--> |
( Return to Top ) | |
Server Side Includes This tag <!--#include file="navigation.html"-->, placed in your shtml doc tells the browser to find the file "navigation.html" and quiet literally, character for character, insert that source in place of the tag. It can be placed within <td> tags or it can stand alone. The rules for SSI are simple: 1. Any file that is to use SSI MUST be saved with the .shtml file extension or it will not work. 2. SSI cannot be tested locally. The website must actually be viewed on a server to see SSI in effect. |
That's it short & sweet, enough information to get you in trouble. Getting out is your business! If you want to learn about CSS in greater detail the web is crawling with great web resources, just do a search. If you want to see actual working examples of these you can download my zip file
HERE .Just download & unzip into an empty folder & have fun ripping them apart! Need Winzip? Get it here:
|
( Return to Top ) |