|  | Posted by Mike Barnard on 03/04/07 11:08 
On Sat, 03 Mar 2007 18:21:19 +0000, Steve Pugh <steve@pugh.net> wrote:
 >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
 
 I see.  Thanks for the in depth breakdown.  I have a LOOOOOTTT to
 learn yet, if ever.
  Navigation: [Reply to this message] |