Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
<title>test</title>
</head>
<body>
<a href = "index.cfm" style="margin:0 0 0 0; padding: 0 0 0 0;"><img src="blah.jpg" alt="blah" style="border-style:none; margin: 0 0 0 0; padding: 0 0 0 0; line-height:0;" /></a>
<div style="background-color:blue;">
menu
</div>
</body>
</html>
jessejump's suggestion worked for all browsers i've tested I'm still not sure what "block" means. I tried reading up on it, and this css box model stuff is confusing sometimes.
As mentioned by jessejump, one solution is to make the images block level elements. The other is to specify vertical-align:bottom on the images (whilst keeping them inline).
This is standards-compliant.
Another way to 'correct' this issue in FF and Opera is to use a Transitional DOCTYPE. You may be able to sort this in IE by removing the DOCTYPE entirely!? (but not recommended! ;)
On the block/inline (HTML) element front - under a strict DOCTYPE you can't have inline elements directly in the BODY. So your anchor needs to be contained in a DIV or P etc.
The W3C on block/inline:
[w3.org...]