Web Hosting Talk







View Full Version : image background


Sops
04-27-2006, 07:06 PM
Just a simply question I hope. How do you use an image in the background but have it not title?

Thanks

Christina
04-27-2006, 07:56 PM
<style type="text/css">
<!--
body {background-image: url(background.gif); background-repeat: no-repeat;}
-->
</style>

You could add a background with a non-tiling image within the <head></head> tags or in a seperate CSS file (of course there are other ways).

Sops
04-27-2006, 09:44 PM
Thanks, but is there a way to do that either inside a table or center it on the top of the page? I can get to to move to other parts of the page just not were I want it.

Fixago
04-27-2006, 10:58 PM
// For the body background
body {
background:url(background.gif) center center no-repeat;
}

// For a table background
table {
background:url(background.gif) center center no-repeat;
}