| ||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| BoxedArt > Template Tutorial > Intermediate HTML Tips for Your Website Template > How to Add a Repeating, Solid, or Stretched Background to a
Template |
||||||||||||||||||||||||||||||||||||||
The BoxedArt Guide to Using Website TemplatesHow to Add a Repeating, Solid, or Stretched Background to a TemplateIn some cases you may decide that a template would look better with a background image or color to fill in the white space behind the web template design regardless of the viewer's monitor size or resolution. There are 3 common types of backgrounds, repeating patterns, solid colors, and stretched background images, which is essentially a smaller repeating pattern. The below tutorial will provide instructions for making the necessary graphics and applying them to your template. Any image that is referred to as "background" in the HTML or CSS of your page will automatically repeat until it fills the screen. You do not have to include any html command telling a background image to repeat - it will do that automatically. Images to be used as repeating or stretched backgrounds are quite small so download speed is not an issue. A common use for a repeating or stretched background image is to place it so that it tiles across the right side of the screen, filling any empty white space on monitors set at higher resolutions. The image that will repeat is actually a small piece of the right edge of your page's design.
Lastly, open the HTML source code for the web page in a text editor such as Notepad. In the <body> tag type
background= followed by the path to the new image you
made: If your web page uses CSS, the command will
read: If you're using an HTML editor such as Dreamweaver,
click on Page Properties in the Properties panel and browse to the image
you created: Save your .html web page file. When viewed in a browser
it will now have the new image (shown alone, at the left below) and
repeating in the web page's background:
To give your page a solid background color, it usually isn't necessary to insert an image. HTML code can designate any solid color you choose. Although most browsers will understand simple color names such as "black", "red", "blue", etc., you have more options if you use hexadecimal color codes. Hexadecimal color codes are combinations of 6 letters and numbers preceded by the # sign. For example: #000000 is black, #ffffff is white, #e87f24 is gold, etc.
|
||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
|
Copyright ©
2007 Big Resources, Inc. All Rights
Reserved |