[whatwg] W3C compatibility

Arve Bersvendsen arveb at opera.com
Mon Feb 12 04:34:57 PST 2007


On Mon, 12 Feb 2007 12:58:49 +0100, Benjamin Hawkes-Lewis
<bhawkeslewis at googlemail.com> wrote:

>> XHTML5 also has a semantic class name "note" for this very purpose which
>> can be used on <aside>, <p> and <span>.
>
> What's the implied difference between <aside> and <aside class="note">?
> How might a UA treat them differently?

@media screen {
    aside.note {
      float: right;
    }
}

@media projection {
    aside {
      float: right;
    }
    aside.note {
      display: none;
    }
}

(Not really assuming what the default presentation is, just outlining one
possible way - there's lots of different ones)

-- 
Arve Bersvendsen, Web Applications Developer

Opera Software ASA, http://www.opera.com/



More information about the whatwg mailing list