Christopher wrote:
> How is this done ? What you mentioned I should do.  I see so class "one" 
> I change the color using the class, but with "two" it takes on the rule 
> of .aboutmepara BUT if it had it's own class then it would not
> take the rule from "aboutmepara" ?

That is correct.  It's called specificity and can get kind of confusing 
at first.  Just remember that to override the cascade of a style setting 
from a container object then you must set a more specific style property.

Another example is this:

        li a { color: blue; font-size: 20px; font-weight: bold; }
        li.selected a { color: red; }


        <li><a href="">This Link Is Blue</a></li>
        <li class="selected"><a href="">This Link Is Red Because It's 
Selected</a></li>
        <li><a href="">This Link Is Blue</a></li>


All of the LI tags have the same style properties except for the 
.selected LI which has it's color changed to red.

For your example if you set this it should work only for the P tag with 
.one assigned.

        .one {
                color: #0000FF;
                text-decoration: underline;
        }

-Adam Ducker (http://adamducker.com)
______________________________________________________________________
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