You are here: Re: difference between css declarations « HTML « IT news, forums, messages
Re: difference between css declarations

Posted by Benjamin Niemann on 11/12/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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация