[thelist] [CSS] Disappearing Markup Block (IE)

Tim Beadle tsb at wigner.ioppublishing.com
Thu Apr 22 09:51:07 CDT 2004


On Thu, Apr 22, 2004 at 03:37:01PM +0100, Adriano Castro wrote:
> Why can't I have <a href="#"><div>foobar</div></a>? Having it the other
> way around does not work the same way I want it to.

Because <div> is a block-level element, <a> is an inline element, and you can't
put a block element inside an inline element.

Tim
-- 
"If you not hope to receive the similar letter again , please click here 
remove. Thank you" -- Unknown 419 spammer


More information about the thelist mailing list