[thelist] I've found a great use for <span>

Simon Willison simon at incutio.com
Fri Aug 2 08:49:01 CDT 2002


At 14:08 02/08/2002 +0100, you wrote:
>What would be wrong with:
>
><div id="horizontalMenu">
>         <a href="page.html">Page1</a> |
>         <a href="page.html">Page2</a> |
>         <a href="page.html">Page3</a> |
>         <a href="page.html">Page4</a>
></div>
>
>div#horizontalMenu * {
>         display: none;
>}
>div#horizontalMenu a {
>         display: block;
>}
>
>Just curious, I can't see any problem with specificity, and it seems fairly
>understandable to me.

I just gave it a go and it doesn't work in Mozilla, probably because of the
* (I don't think wildcards are part of the CSS standards at the moment).

Cheers,

Simon




More information about the thelist mailing list