Results 1 to 2 of 2

Thread: psudo-class within a class?

  1. #1
    Join Date
    Jul 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default psudo-class within a class?

    So if I want to define how my links look within a specific DIV which has a class assigned to it how do I do that?

    I've tried to add the code into the actual CSS within both the DIV itself and in the class but have had unlucky results each time.

    What am I missing?

    Thanks!

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    If your markup looks like this:
    Code:
    <div class="link">
       <a href="#">Linked Text</a>
    </div>
    You can style the link like this:
    Code:
    .link a {
       color:red;
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •