|
-
Jul 3rd, 2008, 08:34 PM
#1
Thread Starter
Fanatic Member
CSS: Limit repeat-y 2 times
Is there any way I can repeat-y something like
#body {
background: url(images/body_bg.gif) repeat-y;
}
but only 2 times? Thanks.
-
Jul 3rd, 2008, 09:02 PM
#2
Re: CSS: Limit repeat-y 2 times
If you mean repeat the image then try:
Code:
body {
background: url("images/body_bg.gif");
background-repeat: repeat-y2;
}
-
Jul 3rd, 2008, 09:16 PM
#3
Thread Starter
Fanatic Member
Re: CSS: Limit repeat-y 2 times
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.
-
Jul 3rd, 2008, 09:40 PM
#4
Re: CSS: Limit repeat-y 2 times
What are you trying to do exactly?
-
Jul 3rd, 2008, 10:38 PM
#5
Thread Starter
Fanatic Member
Re: CSS: Limit repeat-y 2 times
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!
-
Jul 4th, 2008, 12:38 AM
#6
Re: CSS: Limit repeat-y 2 times
 Originally Posted by nebulom
I was just thinking if I can repeat an image background twice.
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.
I thought if you were doing that you might use:
html:
Code:
<div>Something here</div>
then have the corresponding .div or #div in the css file depending on the div type in the html.
Last edited by Nightwalker83; Jul 4th, 2008 at 03:28 AM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Jul 4th, 2008, 02:29 AM
#7
Re: CSS: Limit repeat-y 2 times
Edit your image and expand it to twice its width with it repeating horizontally. Then use that image once.
-
Jul 4th, 2008, 02:44 AM
#8
Thread Starter
Fanatic Member
Re: CSS: Limit repeat-y 2 times
Thanks. That's what I"m doing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|