On Sat, Mar 27, 2010 at 8:59 PM, Tim Climis <[email protected]> wrote: > On Saturday, March 27, 2010 7:33:15 pm Brendan Miller wrote: >> Mozilla's reference seems to indicate that block elements may not be >> contained in a p element. A simple test in firefox shows that I can >> embed an img with display: block set in a p. Is this a bug or correct >> behavior? >> > > Setting an element to display as a block element does not make it a block > element. It only makes it _look_ like one. Which is why that is correct > behavior. > > You can't put <p> into <span>, even if the <span> is display: block either, > for the same reason. > > The HTML is separate from the CSS, so validating HTML can't take CSS into > account.
Thanks, that makes a lot of sense. ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
