A Cascading Style Sheet (CSS) is a document describing a particular
'style' for a web page. In it, you can describe font and background
colors (or images), sizes and positioning, as well as many other
display properties.
The World Wide Web Consortium (W3C) is the official source of information;
http://www.w3.org/Style/CSS/
If you can use HTML to make a webpage, you could either link the HTML
file to an external CSS document or nest it inside the HTML file.
<head> <title>Some page</title>
<!-- Between the 'head' tags -->
<style>
body{
color: 000000;
background-color: ffffff;
}
</style>
</head>
For an external file you would save a text file with the extension as
.css instead of .txt or .htm | .html. You would put the style (as seen
above) inside that document without the HTML tags. You would then put
the following inside your HTML source (where the title of the CSS file
is "MyCSS.css").
<head> <title>Some page</title>
<!-- Between the 'head' tags -->
<link rel="stylesheet" type="text/css" href="MyCSS.css" />
</head>
A style starts with the tag name, followed by an opening curly bracked
'{' and is closed by a closing curly bracket '}'. Which looks like
body{ ... }
You may include multiple tags by seperating the name with a comma ',';
body, p{ ... }
You may also do nested tags where the attribute is applied only to the nested tag;
body table p{ ... }
You will have to do some research to find out all of the possible
styles. Some styles will only work for newer browsers, and some
browsers may not support CSS at all, but that is becomming rare. |