PDA

View Full Version : css shenanigans in i.e.



johnnymeerkat
January 5th, 2006, 05:31 AM
hey all

it appears that i am completely e-tarded when it comes to css. that's what you get for spending your life with flash.

i have a div box with a top and bottom image, and then a background image that flows behind them, as you can see here:

http://canyou.co.uk/divtest.html

in firefox it looks absolutely fine. in ie, however, a little tail part of the background image hangs over under the bottom part of the box, and there's apparently nothing i can do about it.

for reference, the css doc is here:

http://canyou.co.uk/gd.css

if anyone could shed any light on this, i would be most grateful. i've been tearing clumps of hair out for hours now.

morse
January 5th, 2006, 08:07 PM
Any way you could screenshot it for those of us without IE?

revelations1318
January 5th, 2006, 11:13 PM
i've got a permanent glitch in my html/css site with ie. i just accepted it :bored:

morse
January 6th, 2006, 01:01 AM
Na. You can always fix it SOME HOW.

bigmtnskier
January 6th, 2006, 01:18 AM
I've got the solution :thumb: (I've had these troubles before also) It's not your CSS also.

The problem is: every linebreak in your code acts as a space, so... you were having an extra space after mainbottom.png

Change This:


T'anks. <br />

</div>

<img src="./img/mainbottom.png" alt="-" />


<!-- PROFILECONTAINER END -->

</div>

<!-- END OF ALL DIVS -->


To this:


T'anks. <br />

</div>

<img src="./img/mainbottom.png" alt="-" /><!-- PROFILECONTAINER END --></div>
<!-- END OF ALL DIVS -->


Hope this helps ya! :hugegrin:
-Bigmtnskier

johnnymeerkat
January 6th, 2006, 08:10 AM
well screw me, you're absolutely right. thanks, bigmtnskier!

morse
January 6th, 2006, 09:58 PM
Told ya so!! :thumb: