CSS TutorialThis tutorial is not intended to be a complete guide on writing CSS, but to help people get started creating their own style. There are plenty of more detailed tutorials available on the Web deal with CSS in more depth. The basic format of CSS
CSS documents describe how each HTML tag is supposed to look on the user's machine, allowing you to make an entire web site
have the same theme without having to copy all the style information between documents. It also allows different 'classes' for
each tag, so you can easily select how you want particular instances of that tag to look.
[tag] {
[style information]
}
For example:
body {
background: white;
color: black;
}
Colours
Colours are specified by using a short name, or by giving their RGB values. There are plenty of tools out there to help you
pick a colour - try Tucows for
example. For most cases, however, the short names are enough to pick the colours Images
You can also use images for backgrounds as well. To specify an image, enter Basic formatting
You can set the colour for the text using
The background can be set using
You can set the alignment of the text using
You can also set the width that a particular block will occupy, with the aptly named Using a CSS stylesheet
Although you can put style information straight into a HTML page, that's not entirely what it was designed for - they are
normally seperate documents that are linked to by a HTML document. This allows more than one HTML document to share the style,
making it easier to ensure that your entire site looks the same.
This tells the browser to | ||
|
Home News Sign Up CSS Guide + Guestbook entries + 'Sign Guestbook' link + Page selector + Example styles CSS wizard XML/RSS feed Terms & Conditions | ||
©2004 Richard Wallman. All rights reserved. All trademarks recognised. Need help? Contact us at We welcome any suggestions on how we can improve this service - please email us at Please report any abuse of the system to . |