CSS stands for Cascading Style Sheets, which is a relatively new way to control the way your webpages look. It is used as an extension to HTML. CSS works in Internet Explorer 3+ Netscape Navigator 4+ and Opera 3.5+ as well as a few other, less popular, browsers. But enough about that, here's how you use it.
This is what a CSS tag looks like:
selector {property:value; property:value; property:value} Selector is the element you wish to define, usually an HTML tag. Property is the attribute that will be changed, and value is how the attribute will be changed. The property and value are surrounded by {}, and if there is more than one property, they are seperated by semicolons. Here is an example: body {font-family:Arial; font-size:10pt; font-style:italic} The above code is like saying <font face="Arial" size="2"><i> in HTML, except it applies to all text within the body tags.<head> <style type="text/css"><!-- CSS tags and information go here --></style> </head>Note the comment tags <!-- --> surrounding the stylesheet attributes. These ensure that the attributes remain hidden from browsers not supporting style sheets.
<link rel="stylesheet" href="style.css" type="text/css">All you need to change here is href="style.css" by changing "style.css" to whatever your stylesheet is named. Be sure it ends with .css, or it won't work. The style sheet itself consists only of CSS tags, with no HTML or <style> tags.
<font style="letter-spacing:5px; text-decoration:underline">Now that you know how to use CSS, you'll want to know what you can do with it. A list of common CSS tags and properties can be found here.





© 2000-2010 Xentrik.Net