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

Richard Harb rharb at earthling.net
Thu Apr 22 10:02:11 CDT 2004


Thursday, April 22, 2004, 4:37:01 PM, you wrote:

>> * Your <a> needs to be inside the <div> - not the other way around.
>>  <div class="title"><a href="#">foobar</a></div>

> 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 by default a <div> is a block level element whereas <a> is
inline.
And the rules as given by the powers that be state that inline
elements are to be encapsulated in block elements - and not the other
way round.

Richard


<rest snipped>



More information about the thelist mailing list