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)?

Anton Prowse
Received on Sunday, 7 September 2008 09:49:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:39 UTC