Is there any way I can repeat-y something like
#body {
background: url(images/body_bg.gif) repeat-y;
}
but only 2 times? Thanks.
Is there any way I can repeat-y something like
#body {
background: url(images/body_bg.gif) repeat-y;
}
but only 2 times? Thanks.
If you mean repeat the image then try:
Code:body { background: url("images/body_bg.gif"); background-repeat: repeat-y2; }
Guess can't limit the number of times to repeat the image, http://www.webdesignerforum.co.uk/in...showtopic=4020
And tried here, http://w3schools.com/css/tryit.asp?f...kground-repeat but with no luck. Thanks anyways.
What are you trying to do exactly?
I was just thinking if I can repeat an image background twice. Coz when I do repeat-y it repeats all the way to the whole width of the page. I was thinking if I could limit it to just, let's say, twice or thrice.
Anyway, it's said on that forum I posted earlier that I can't limit the number of repeats.
Thanks!
Ah ok!I though that you were wanting to split the page in two then have one half one colour, and the other half other color or something similar.Originally Posted by nebulom
I thought if you were doing that you might use:
html:
then have the corresponding .div or #div in the css file depending on the div type in the html.Code:<div>Something here</div>
Last edited by Nightwalker83; Jul 4th, 2008 at 03:28 AM.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
Please consider giving me some rep points if I help you a lot.
DON'T BUMP YOUR POSTS!!! Links to my code examples can now be found on my website: My websites
Please rate my post if you find it helpful!
Technology is a dangerous thing in the hands of an idiot! I am that idiot.
Edit your image and expand it to twice its width with it repeating horizontally. Then use that image once.
Thanks. That's what I"m doing.![]()