W3C home > Mailing lists > Public > www-style@w3.org > September 2008

[CSS21] display:block nested inside display:inline = display:inline-block ?

From: Anton Prowse <prowse@moonhenge.net>
Date: Sun, 07 Sep 2008 11:48:51 +0200
Message-ID: <48C3A383.5080007@moonhenge.net>
To: "www-style@w3.org" <www-style@w3.org>

I may just be being unobservant but I can't seem to find anything in the 
CSS2.1 spec stating the formatting behaviour when an element with 
display:block is the child of an element with display:inline.

An oft-seen example is <a><img></a> where img has been given display:block.

What is the formatting model for this situation? Is the display:block 
element treated as display:inline-block (or even has its computed value 
changed to this)?

Cheers,
Anton Prowse
http://dev.moonhenge.net
Received on Sunday, 7 September 2008 09:49:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:12 GMT