|
|
|
|
![]() ![]() |
May 18 2005, 09:24 PM
Post
#1
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 4 Joined: 18-May 05 Member No.: 5,213 |
hi..
here's a exaple of how i tried to localy changing my link colors have fun! is not valid CSS, and you can't put the link attribute in anything other than the body tag I believe, but all of this should be done in CSS. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color:#0000FF; color:#FFFFFF; } a,a:link,a:visited,a:hover,a:active { color:#FFFFFF; } a.blacklink,a.blacklink:link,a.blacklink:visited,a.blacklink:hover,a.blacklink.a ctive { color:#000000; } --> </style> </head> <body> <a href="#">blah</a> <table cellpadding="0" cellspacing="0"> <tr> <td><a href="#" class="blacklink">blah2</a></td> </tr> </table> </body> </html> |
|
|
|
Mar 27 2006, 07:05 AM
Post
#2
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 9 Joined: 24-November 05 Member No.: 9,796 |
Thanks!
I tried it in a <div> tag and it works, at least on Explorer 6.0, witch have good css support. It's a smart way of doing this. I'm gonna see how it works on different platforms and browsers. Peace! |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th October 2008 - 06:09 PM |