The Web Just This Site

NM Web Tutorials

Layout: Background Image-Type 2

This is the Image we will be using:

Vertical gardant from black to red

CSS

What The Code Does

 

 

 

 

body {
background: #000000 url(images/blackredgradientsmall.jpg) top left repeat-x;
}

Lets take a close look at that, #000000 is the colour for a black background, url(images/blackredgradientsmall.jpg) is to locate the image, and top left repeat-x; is so the image will begin from the top left, and repeat on the x axis (horizontal) for the whole page.