I have this construct:
<a onclick="toggle_media_box(); return false;" href="#" class="media_link"> <div id="media_link" class="media_link"></div> </a><br /> #media_link { background-image: url("/images/media.png"); } .media_link { width: 445px; height: 200px; }
Image size - 445 pixels (but it was 620 pixels). All other links like this are 620px in size.
In IE, everything works fine, and the link is 445 pixels in size. But in Firefox and Chrome, the connection still has a width of 620 pixels. The size of the div is 445px.
What to do? The <a> tag must be 445px in size.
Interestingly, the link really freezes up to 445 pixels, but is available for clicks up to 620 pixels.
Your joern.
Joern akkermann
source share