Multiwingspan Home Page |
Multiwingspan Games |
Gnasher @ Multiwingspan |
Multiwingspan Calendar |
Multiwingspan Clock |
About Multiwingspan |
Visual Basic 6.0 Guide |
Visual Basic 6.0 Examples |
Turbo Pascal Guide |
SWI Prolog Guide |
Visual Basic 2005 Guide |
Structured Query Language |
HTML Design Tasks |
Introduction To HTML |
Introduction To CSS |
Introduction To Javascript |
AS/A2 Level Computing |
Embedded Stylesheets
Box Properties
Font Properties
Text Properties
Background Properties
Link Selectors
Positioning Elements
External Stylesheets
Event Handlers
This section follows on from the HTML Guide on this site.
If you are serious about web design you will need to know how to use cascading stylesheets. Not only do they save you time when applying similar formats to the same tags but they also allow greater control over how each HTML element is displayed. With stylesheets it becomes easier to overcome he restrictions that using HTML alone will place on the formatting of your pages.
There are two main types of stylesheet, inline stylesheets which are declared in the <head> section of the web page and external stylesheets which can be used to apply styles across a whole site. Imagine the time saved by housing all of your formatting information for a whole site in one single file!
The main advantage of stylesheets is the level of control that you can gain over how elements in the web page are displayed. The ability to specify formats which can be used over and over again can save time in a complex page.
There are problems with the way in which different browsers have implemented the standards for stylesheets. Some browsers can be set to ignore style definitions or even impose a user-defined stylesheet on the page. Before any styles are applied you should ensure that your page is readable if your style settings are overlooked by the browser.