SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Checkmate's Avatar
    Join Date
    Nov 2001
    Location
    NY
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Override Links--How?

    In my CSS, I already defined the colors for links. Those links will apply to the body only. But let's say I want to defined a different color for menu links, how do I override the body links in CSS?

    Thanks in advance.

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A different class, i.e.

    Code:
    A.menuLink {color:black}
    
    ...
    
    <a href="_" class="menuLink">link</a>

  3. #3
    SitePoint Enthusiast Checkmate's Avatar
    Join Date
    Nov 2001
    Location
    NY
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it. Thanks.


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
  •