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

Jim Dabell jim-lists.evolt.org at jimdabell.com
Fri Aug 2 10:01:32 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Friday 02 August 2002 2:48 pm, Simon Willison wrote:
> 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).

It's not a wildcard, it's the universal selector.  I realised why it won't
work - the bars are not elements, so they can't be selected for a css rule.

- --
Jim


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Spto3tJNldoQhi8RAoSWAKDHmyWgZNQrwG/nig3esdED3sTqCQCfVyjn
wvXV3V3UizaGOkp+QD6Rmng=
=C0lR
-----END PGP SIGNATURE-----




More information about the thelist mailing list