Posted by Benjamin Niemann on 11/02/22 11:24
ppcguy wrote:
> i've got
>
> * html #menu
> {
> }
>
> and
>
> #menu span
> {
> }
>
>
> <body>
> <span id="menu">
> </span>
> </body>
>
> is there a difference between the two css declarations.
>
> i would think they're the same...but if i move the contents
> from one to another i get different results.
'#menu span' refers to a span inside an element with id="menu", e.g.
<div id="menu"><span>..</span></div>
What you probably want is 'span#menu'.
Then both rules would match your <span> but with different priorities, so
they are are not 'the same'.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|