Ken Ward's Cascading
Style Sheets Tutorial

[Main Site Page: Freeing the Mind]
[Cascading Style Sheets: Contents]
[Previous: Headings]
[This Page: Alignment]
[Next: Fonts]


The code for this page is:

body {border: 10 solid rgb(0,0,255);  margin: 10%; padding: 10 }

h1{ margin-left: -5% }

The border property has 3 values:

The property, margin, has a percentage value (10%).

We have padding with a value of 10.

The heading is indented with a negative value, so it appears to the left of the text. Did you notice that this page scrolls, but the background doesn't (You may notice this only if you are using IE4X?

Here's the code:

body {background: url(fireringd.gif) fixed;}

An alternative way of writing this is:

body {background-image: url(fireringd.gif); background-attachment: fixed;}

You can also use background-color.

Let's look at the FONT selector now.


| Contents |