|
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]
|