Posted by Benjamin Niemann on 11/13/13 11:24
David Håsäther wrote:
> Benjamin Niemann <pink@odahoda.de> wrote:
>
>> 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.
>
> [...]
>
>> 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'.
>
> Except, of course, that "* html #menu" will never match anything
> (unless there is a buggy implementation).
Oops. You are correct. My mind focused on the second rule..
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
[Back to original message]
|