Click to See Complete Forum and Search --> : random black lines in IE


Fireduck2313
01-25-2006, 01:21 AM
http://www.lifechangeadventures.org/ecuador.php

Firefox displays this fine. IE has black horizontal lines extending from select images appearing next to some H2 headers. I can't seem to figure out if there is any kind of explanation for this other than IE's poor handling of CSS. Any recommendations would be great. I'd rather not implement any kind of browser specific scripts.

Fang
01-25-2006, 02:04 AM
Add:
#main {zoom: 1;}
I would also suggest adding:#horizontal a {
color: #000000;
white-space: nowrap;
}
This will prevent the anchor text breaking onto a 2nd line.

alexthecatta
01-25-2006, 08:17 AM
what does zoom instruction do?

Fang
01-25-2006, 08:27 AM
Exactly what you would expect zoom to do: http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/zoom.asp
In this instance zoom:1 does nothing, except setting the property hasLayout (http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp), which gives the IE the ability to calculate the dimensions of the element and therefore solving the problem of those unwanted lines, without affecting any other browser.