View Full Version : Background images?

07-10-2007, 06:17 PM
Hi I was wondering how do you make various images to be in the background. I know how to put a single background image, but I do not know how to make an image be part of the background yet in a specific location.

For example: the gradients on most websites are in the background. Logos are usually not. How can the gradients be in the background but still be places at specific locations?

Any help would be greatly appreciated!

07-10-2007, 06:22 PM
Hmmmm... do you have knowledge of HTML/CSS at all? If so you can use the background-image: property in CSS to create exactly that, a background-image. They can be applied to lots of different HTML tags, but are usually used in conjunction with divs, and anchor tags.

Have a look at http://www.ahallicks.co.uk (my site) and view the CSS (http://www.ahallicks.co.uk/resources/style.css) and the HTML (with View Source) and have a look how I added background images to divs to build up the page.

Then, to add images in the foreground you can add them in the HTML using the <img /> tag. Simple as that. If you have a link to an example you would like explaining, or your own site,, then post it and we'll do what we can for you.

07-10-2007, 07:11 PM
ya, u can add a background-image to almost any element on your page.
another thing u can do if u want your img to stick out of the borders or somthing is put the img in your html then use postition propertys in css to put it in the correct locations.