Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

Ex. Of Localy Changing Link Colors


1 reply to this topic

#1 biesbos

biesbos

    Newbie [ Level 1 ]

  • Members
  • 4 posts

Posted 18 May 2005 - 09:24 PM

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...ml4/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>

#2 Jens_L

Jens_L

    Newbie [ Level 1 ]

  • Members
  • 9 posts

Posted 27 March 2006 - 07:05 AM

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!



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users