Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    66
    Plugin Contributions
    0

    Default Two separate classes for hyperlinks

    I need to have to separate sets of hyperlink colours. For the sideboxes I currently have the links in all states set to #18089c which is exactly as it should be. I need all other links outside of the sideboxes to be #808080 when active and #32435f at all other times.

    After a lot of tinkering about and searching this forum I have not been able to get this work. How would I go about setting this?

    Thanks in advance!

  2. #2
    Join Date
    May 2006
    Location
    Australia
    Posts
    110
    Plugin Contributions
    2

    Default Re: Two separate classes for hyperlinks

    It's quite simple.

    You can target the side box links by doing something like this:
    Code:
    .leftBoxContainer a:link, .rightBoxContainer a:link {
      color: #18089c;
    }
    .leftBoxContainer a:visited, .rightBoxContainer a:visited {
      color: #18089c;
    }
    .leftBoxContainer a:hover, .rightBoxContainer a:hover {
      color: #18089c;
    }
    For the rest of the links you can just do the usual...
    Code:
    a:link, a:visited {
      color: #32435f;
    }
    a:hover {
      color: #808080;
    }
    etc...

    I haven't tested this but I hope it helps.

  3. #3
    Join Date
    Aug 2005
    Posts
    66
    Plugin Contributions
    0

    Default Re: Two separate classes for hyperlinks

    Thanks for the reply. I'll give this a go tomorrow and let you know if it works (though it looks like it should). I was looking at the sideBoxContent class rather than the container class and this may be where I was going wrong...

  4. #4
    Join Date
    Aug 2005
    Posts
    66
    Plugin Contributions
    0

    Default Re: Two separate classes for hyperlinks

    Spot on! Many thanks, Rowan.

 

 

Similar Threads

  1. Two Separate Checkouts?
    By AaronHicks in forum Managing Customers and Orders
    Replies: 2
    Last Post: 11 Aug 2011, 06:33 AM
  2. Two separate mix and match sales. Possible?
    By HippieBoy in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 4 Mar 2010, 07:42 AM
  3. Two Separate Header Files
    By RogerW37 in forum General Questions
    Replies: 13
    Last Post: 11 Jul 2009, 04:10 AM
  4. Two currencies with separate shipping rates?
    By kylelondonuk in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 6
    Last Post: 11 Jul 2007, 08:54 AM
  5. CSS Flyout Menu - separate to two main categories
    By TomCZ in forum General Questions
    Replies: 0
    Last Post: 17 Mar 2007, 08:07 PM

Posting Permissions

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