Sep 5, 2002 #1 JazzLeg Programmer Aug 22, 2002 63 GB Can anyone tell me how to use more than one style to apply links to appear on one page. As I have a page where I would like the hyperlinks to use different colours and behave differently on mouse over. Thanks for reading this.
Can anyone tell me how to use more than one style to apply links to appear on one page. As I have a page where I would like the hyperlinks to use different colours and behave differently on mouse over. Thanks for reading this.
Sep 5, 2002 1 #2 starway Programmer Jan 15, 2002 1,010 UA Add this to your styles: <style> a.one:link { color: green; text-decoration:none} a.one:hover { color: white; text-decoration:underline} a.two:link { color: yellow;} a.two:hover { color: gold; text-decoration:none } </style> The syntax is this: [tt]a.classnameseudoclass[/tt] - and there should be NO spaces between them. Then assign classes to your links in html: <a href="" class="one"> link type1 </a> <a href="" class="two"> link type2 </a> Upvote 0 Downvote
Add this to your styles: <style> a.one:link { color: green; text-decoration:none} a.one:hover { color: white; text-decoration:underline} a.two:link { color: yellow;} a.two:hover { color: gold; text-decoration:none } </style> The syntax is this: [tt]a.classnameseudoclass[/tt] - and there should be NO spaces between them. Then assign classes to your links in html: <a href="" class="one"> link type1 </a> <a href="" class="two"> link type2 </a>
Sep 5, 2002 Thread starter #3 JazzLeg Programmer Aug 22, 2002 63 GB Thanks very much starway, spot on. Upvote 0 Downvote
Sep 5, 2002 #4 Boomerang Programmer Mar 30, 2001 766 NL Do also take a look at these threads: thread215-301168 thread215-307455 thread215-304775 hope this helps, Erik <-- My sport: Boomerang throwing !! !! Many Happy Returns !! --> Upvote 0 Downvote
Do also take a look at these threads: thread215-301168 thread215-307455 thread215-304775 hope this helps, Erik <-- My sport: Boomerang throwing !! !! Many Happy Returns !! -->