On Jan 23, 2008, at 10:06 AM, Geoffrey Hoffman wrote:

> #outer { border:4px solid red; }
> #outer a { color:red; }
> .inner { border:4px solid green; }
> .inner a { color:green; }

The why has been answered well, but let me chime in. If you want it  
green, simply replace

.inner { border:4px solid green; }
.inner a { color:green; }

with

#outer .inner { border:4px solid green; }
#outer .inner a { color:green; }

and you'll have it green.

Get used to the cascade and specificty rules, and you can create some  
interesting effects.

Have Fun,
Arlen

------------------------------
In God we trust, all others must supply data

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to