Results 1 to 3 of 3

Thread: style for link without having a class in the HREF

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default style for link without having a class in the HREF

    I have some links and I cant put a class in them.
    So how can I give them a style anyway? Is there a way to put the class in the TD that surrounds them and put some A attribute in the css of the same class?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, if the link is inside the td and the td has a class of say - ltd, you can select its links like so:

    Code:
    .ltd a {
    color:green;
    font-family:sans serif;
    }
    Just remember that if you have styling for any other links on the page, you may need to specify pseudo classes and/or properties for '.ltd a' that will prevent them from using these link stylings that might otherwise also apply to them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Default thank you...


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
  •