[thelist] FW: XHTML - Nexted Divs

Lachlan Cannon luminosity at members.evolt.org
Sun Dec 29 19:19:01 CST 2002


Martyn Haigh wrote:
> I'm really sorry - I've fixed it!
>
> The problem was that I had nested the <div> tag in a <p> tag. So I moved
> the div tags outside of the p tag  and it now works.
>
> But I have no idea why - does anyone else know?

<p> tags cannot contain block elements, only inline ones. <div>s on the
other hand are perfectly capable of containing block elements, hence the
order should be div then p.

PS, please make sure to trim your posts to only the relevant material
instead of including everything in your reply.
--
Lach
__________________________________________
Web: http://illuminosity.net/
E-mail: lach @ illuminosity.net
MSN: luminosity @ members.evolt.org
__________________________________________





More information about the thelist mailing list