![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone has any idea why is this happening? I have been fighting to solve this and I wasn't able to do it ... |
#3
| |||
| |||
|
|
Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone has any idea why is this happening? |
#4
| |||
| |||
|
|
In article ef9a6a32-0caf-4996-8a0a-acd143aac... (AT) f63g2000hsf (DOT) googlegroups.com>, *shapper <mdmo... (AT) gmail (DOT) com> wrote: Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone has any idea why is this happening? I have been fighting to solve this and I wasn't able to do it ... What exactly are you surprised by? I see no repeat-y in your CSS. Perhaps you are wanting repeat-x and are surprised by the y repeat (which is part of the default repeat). To repeat in other words: repeat in both directions is default for background images. You have to specify restrictions if you do not want this. But your case is misleading: Your image is 980px wide and so is your div, so *of course* it cannot repeat in the horizontal direction and since you have done nothing to stop it repeating in the vertical direction, it does. I have to go out to my backyard now and hit myself several times hard with a handy bit of timber I keep for the purpose. Whenever I get cross with JK I also incant at the same time "I must not be such a disgusting coward. I must not be such a disgusting coward". Excuse me. -- dorayme |
#5
| |||
| |||
|
|
On Sep 25, 1:40*am, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In article ef9a6a32-0caf-4996-8a0a-acd143aac... (AT) f63g2000hsf (DOT) googlegroups.com>, *shapper <mdmo... (AT) gmail (DOT) com> wrote: Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone has any idea why is this happening? I have been fighting to solve this and I wasn't able to do it ... What exactly are you surprised by? I see no repeat-y in your CSS. Perhaps you are wanting repeat-x and are surprised by the y repeat (which is part of the default repeat). To repeat in other words: repeat in both directions is default for background images. You have to specify restrictions if you do not want this. But your case is misleading: Your image is 980px wide and so is your div, so *of course* it cannot repeat in the horizontal direction and since you have done nothing to stop it repeating in the vertical direction, it does. I have to go out to my backyard now and hit myself several times hard with a handy bit of timber I keep for the purpose. Whenever I get cross with JK I also incant at the same time "I must not be such a disgusting coward. I must not be such a disgusting coward". Excuse me. -- dorayme Sorry, I completly forgot the repeat-y when I created this example from my original code. I just corrected it: http://www.27lamps.com/Beta/Background/Background.html The problem is still the same? Am I still doing something wrong? Thanks, Miguel |
![]() |
| Thread Tools | |
| Display Modes | |
| |