Christopher wrote:
> Hi, Adam I think I understand you but I still have some questions, when
> I change the color for the "aboutmepara" it only changes the color of
> the second paragraph, how come not the first paragraph. And in terms of
> the underline you are saying that if you have more then one tag, like in
> this example a <p> tag it cascades though to all the other <p> tags and
> applies the same thing as in this case a underline!
> So how can I make only one paragraph have a underline and not the other ?
This is your CSS:
.aboutmepara { color:#003300; }
.one { color:#0000FF; }
.two { }
Setting #003300 to .aboutmepara works for .two because .two is inside
.aboutmepara and has no color set. With .one however, even though it
too is inside .aboutmepara the color is set to #0000FF by .one, which is
a more specific value than the value in .aboutmepara, so it uses #0000FF
and not #003300.
To apply underline to just one element you need to apply it to the
classname or ID of the element you want to apply it to, such as you are
doing with the color in .one...
-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/