»Home
  »Intro
  »Headings
  »Separators
  »Links
  »Text
  »Images
  »Backgrounds

Backgrounds

How do I change the background color?
     
Putting in a backgound color is actually very easy. There are 2 ways to do this, you can either put:
bgcolor=colorname of hexidecimal value
inside your opening <body> tag. This will set the background of the whole document to be the color that you put in the code.

Another way to change the background color is by using CSS (cascading style sheets).
Put the following into your document:

<style type="text/css">
body{background-color: color name or hexidecimal value;}
</style>

This CSS code that you typed in will format the body tag to have that black background with out having to type in any extra code in the body tag. I prefer using the CSS to the typing in the code in the opening body tag, because Ioften set other attributes to the body tag that will format other elements of the page, such as colors of the scroll bar, background pictures, centering background pics, default text color, default text size and type. We'll get to this later though, for now lets focus on backgrounds.

How do I use an image as my background?
     ›
I find the best way to do this is with CSS, although you can do it with HTML.

In order to make a background picture using css, you will have to enter in more code into the style tag under the property of "body". Here is what you should add:

background-image; url(" picture url ");
background-repeat:---type of repeat element---;
background-position:---type of position---;
background-attachment:---type of attachment---;


Place the url of the picture into where it says "picture url", and make sure you leave the quotes there. The different ways you can get the image to repeat is by replacing "---type of repeat element---" with the following settings:

Hosted by www.Geocities.ws

1