View Full Version : Tiling background image


Tigeress
03-26-2003, 03:47 PM
My sister is attempting to tile her background image (make it repeat throughout the screen), but isn't sure of the code. We both searched this site and couldn't find it. I thought Lissa did have it, along with a page on how to make an image repeat vertically or horzontally, but I guess it was taken down or I'm imagining things. :P

I know the code is very simple, but I don't remember it. Does anyone else know it? Please post if you do! Thank bunches!

pb&j
03-26-2003, 03:53 PM
the background image will tile automatically.

background="someimagefile.gif"

to have it go only vertically or horizontally, then you can use css coding to do that.

<style type="text/css">
<!--
body {background: #ffffff url(SomeImage.gif) repeat-y;}
-->
</style>

change the y to an x to have it go the other direction.

Tigeress
03-26-2003, 04:14 PM
It didn't tile automatically when my sister put the background image in without doing anything to the code. Which is why she called me asked for help. :P

lefty
03-26-2003, 04:20 PM
That's odd. Mind posting the code and/or a link to the page?