Multiple Anchor Colors

  • BinaryMan
  • Novice
  • Novice
  • User avatar
  • Posts: 15
  • Loc: CA, USA

Post 3+ Months Ago

I would like to use <font color=whatever> to create different colored links on a page, rather than have one color for all links. Is there a way to override the defaults for a page (I know a style sheet will change the default color, but for ALL links)? It seems the <font> tag has no effect on anchor text color. Perhaps a style sheet with alink;color=none or something similar?
  • joebert
  • Genius
  • Genius
  • User avatar
  • Posts: 13511
  • Loc: Florida

Post 3+ Months Ago

Code: [ Select ]
.one {color:#123456;}
.two {color:#654321;}

<a href="#" class="one">Class One</a>
<a href="#" class="two">Class Two</a>
  1. <style>
  2. .one {color:#123456;}
  3. .two {color:#654321;}
  4. </style>
  5. </head>
  6. <body>
  7. <a href="#" class="one">Class One</a>
  8. <a href="#" class="two">Class Two</a>

"CSS class" is what to searh for on this one :wink:

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.