View Full Version : Centering Background Image


Laura87
03-30-2003, 09:14 PM
I know there is a simple HTML code for doing this and only showing the background image once (verses tiling). I tried doing this using CSS but I confused myself to the point of no return. So does anyone know the HTML code to center a background image?

Thanks in advance.

TheDisturbedOne
03-30-2003, 09:31 PM
i don't think it's possible to do it in html but there may be a way but i don't know it

Alcy
03-30-2003, 11:21 PM
In CSS:
<style type="text/css">
body
{
background-repeat:no-repeat;
background-position:50% 50%;
background-image:url(image.gif);
}
</style>