Click to See Complete Forum and Search --> : question on image repeat


HJC
04-26-2008, 12:43 AM
hi all,
in css file I have
body{background: url(images/bg.gif) #7E655B top repeat-x;
margin: 5px 0 5px 0;
if my image is not long enouh for my contain, How can I repeat in y(high)
thank you

NogDog
04-26-2008, 01:04 AM
Just use "repeat" instead of "repeat-x" if you want it to repeat in both axes.

HJC
04-27-2008, 10:50 PM
no, it not work

g2k556
04-27-2008, 10:56 PM
body
{background-image: url(images/bg.gif);
background-color: #7E655B;
background-position: top;
background-repeat: repeat-x;}

that should help. if not, let us know the results. and what are you doing with the margins?

HJC
04-28-2008, 09:48 PM
hi , thank you for the reply, your code is the same with the old one, the problem is the image is not long enough, I need both x and y repeat, usually, I use background-repeat: repeat, but it not work.
thank you

therese
04-29-2008, 05:30 PM
Try not using the repeat line at all and the image should repeat itself both across and down and leave out the background-position line also.