You are here: Re: "span.webdeveloper-div-order {" Whats this? « HTML « IT news, forums, messages
Re: "span.webdeveloper-div-order {" Whats this?

Posted by Steve Pugh on 03/03/07 18:21

Mike Barnard <m.barnard.trousers@thunderin.co.uk> wrote:

>Yes, I've googled. Found the phrase sparingly but no explanation. So,
>whats it for please? It's the first line in a css file I'm looking
>at.

span.webdeveloper-div-order is a CSS selector.
span is a selector for the span HTML element and the dot denotes a
class, in this case that selector selects all span elements of the
class webdeveloper-div-order. i.e. it matches the HTML <span
class="span.webdeveloper-div-order">...</span>

> It has loads of colours like this in the statement.
>
>background-color: #ffff99 !important;

And those are the styles.

CSS rules take the form
selector { property: value;}

In thise it's setting the background-color property for the above
mentioned HTML elements. The !important is an instruction that raises
declaration above the normal specificity order and is used to avoid
clashes with declarations from elsewhere in the cascade.

CSS: http://www.w3.org/Style/CSS/

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>

 

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

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