w1nk5
March 9, 2010, 5:14am
1
I have a small form with validation. The validation appears below the form and extends the forms containing div.
In firefox it handles it like this:
Internet Explorer handles it like this:
I much prefer the way it is handled by firefox, how it doesn’t extend the background image. Is there a way to get IE to make it appear the same way ?
ralphm
March 9, 2010, 5:32am
2
Certainly, but we would need to see a link (or some code) to know what’s causing this.
i’m not exactly sure if this will work, but probably you could try background-repeat:no-repeat; or background-repeat:repeat-x; ??
w1nk5
March 9, 2010, 5:57am
4
w1nk5
March 9, 2010, 6:04am
5
I just placed the validation div outside the main div with the background and that works fine.
ralphm
March 9, 2010, 6:19am
6
OK, good. Nice site! But just to let you know, Firefox is alerting me to some errors, such as “border-borrom” (line 62), “paddind-left” (line 213) and a few other bits and bods. Time for some validation!
w1nk5
March 9, 2010, 7:03am
7
OK, good. Nice site! But just to let you know, Firefox is alerting me to some errors, such as “border-borrom” (line 62), “paddind-left” (line 213) and a few other bits and bods. Time for some validation!
haha thanks… I’m getting there
The most probable cause is that you had floated elements within the bottom part of hte gray div (I’m looking at hte IE image)
On the parent you must have set haslayout (a width or someting) and as a result IE contained the floats.
FF was correct in not containing the floated elements.
You could have restructured as you said, or add an extra parent and place the background on that element instead of on the other parent