0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

One link, one color

  • One link, one color

    Posted 16 years 8 months ago
    • CSS and links.

      Specific color everywhere or in specific location.

      #your location here
      a["your link here"]
      {your ccs style here}

      Examples :
      #horiz-menu a[href="http://www.mysite.com/contact"] {
      color: #00ffff;
      }
       
      div.moduletable a[href="http://www.mysite.com/site-map"] {
      color: #006633;
      }
       
      a[href="http://store.mysite.com/"] {
      color: #cc0000;
      }
  • Re: One link, one color

    Posted 16 years 8 months ago
    • Are you asking a question on how to have specific colours for specific links?
    • James Spencer / Developer & Support / Hull, UK
  • Re: One link, one color

    Posted 16 years 8 months ago
    • No question, just a trick
  • Re: One link, one color

    Posted 16 years 8 months ago
    • Its a good CSS trick, but I would say its better to use classes as that type of selector is unsupported by IE6 and as IE6 is still prevalent on the web, I wouldn't use selectors.
    • James Spencer / Developer & Support / Hull, UK

Time to create page: 0.082 seconds