> But how do I set the style for the second link? I've tried all sorts of 
> methods, but I can't get it to *not* inherit the container style.
>
> Thanks in advance!

Hi Christian,

For the most part, (and in most browsers) any CSS declaration
that uses an ID will take priority over one that uses only a class.

As such, in the example you're trying to solve, we'll need to
add extra specificity to your custom anchor link class in order
for them to take priority over the general rule.

> <div id="container">
> <p><a href="#">container formatting</a></p>
>
> <p><a href="#" class="custom">custom formatting</a></p>
>
>  </div>

regular container links might appear like this:

#container a:link,
#container a:visited {
  property: vaule;
   }

custom links, since they fall within the specified ID:

#container a.custom:link,
#container a.custom:visited {
  property: value;
 }

Hope that helps!
Ryan

design.sixfoot6.com










>
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to