I've got a related question:

Given that it's contrary to the W3C rules to nest a block-level 
element inside an inline-level element, is it also contrary to the 
spirit of those rules to use CSS to style a nested inline element as block?

In other words, is this kosher:

        <a href="#"><span>This becomes a block</span></a>

        a span
        {
                display: block;
        }

(I've done this when I've wanted to toggle the display of blocks on 
anchor-hover.)

If this kind of styling is acceptable to the W3C, *why* is it 
acceptable when it appears to create a nesting that's prohibited by the DTD?

Curiously,
Paul

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to