Forum Moderators: not2easy

Message Too Old, No Replies

simple ie div img link problem

         

gonky

12:50 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



Hello

I have a linked image inside a div, the problem in ie 5.0 5.5 and 6.0 is that the whole footer div becomes the link, this obviously isn't the case in firefox and other decent browsers.

<div id="footer"><a href="/link" style="float: left"> <img src="img/blah.gif" width="106" height="40px" alt="" title="" /></a>
</div>

cheers guys

lZakl

2:50 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



I don't know the properties of the ID "footer" but why is the:

style="float: left"

placed in the HREF tag instead of the IMG tag?

Just that at a glance it doesn't look right, however I am NOT an authority on CSS... I just thought I'd offer my 2¢.

-- Zak

gonky

3:36 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



hi thanks for the input the float is to get around another silly ie margin bug, heres the css for the footer

#footer {
padding: 0;
margin: 0;
height: 90px;
background: transparent url(img/foot3.gif) 0 0 no-repeat;
}

#footer img {
border-style: none;
margin: 5px 0 0 590px;
display: inline; /*stupid ie float bug see [positioniseverything.net...] for details*/
}

#footer a {
border-style: none;
display: block;
width: 127px;
}

any help would be ace

ta!