 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
MinatureCookie
Joined: 20 Mar 2006 Posts: 68
|
Posted: Tue Jun 13, 2006 11:17 am Link color |
|
|
|
I don't beleive I'm stuck on link colors! Lol
Well, anyway, my problem is, when I go on a hover link, if it's been visited, the visited colour over-rides the hover color.
I take away the visited order, it works then, but the visited links look that ugly colour.
If that didn't make sense, here's my code.
| Code: |
<html>
<body bgcolor="#F0F8FF">
<center>
<img src="cpu.bmp"><BR>
<style type="text/css">
a:link {color: #000000; text-decoration: none;}
a:active {color: #000000; text-decoration: none;}
a:hover {color: #94B2D1; text-decoration: none;}
a:visited {color: #000000; text-decoration: none;}
</style>
<font size="-3"><font face="Arial"><a href="mailto:MinatureCookieatGMail.com" target="_blank">Contact Us</a> |
<a href="sponsor.html" target="_blank">Help advertise us</a> |
<a href="o-websites.html" target="_blank">Other Websites</a>
</center>
</body>
</html> |
|
|
Corey Bryant Site Admin

Joined: 15 May 2004 Posts: 8267 Location: Castle Rock CO USA
|
Posted: Tue Jun 13, 2006 11:41 am |
|
|
|
First, remember styles go into the <head>, not the <body>. Second, since css is cascading, that is why the overwriting. You should use
| Code: |
a:link {color: #000000; text-decoration: none;}
a:visited {color: #000000; text-decoration: none;}
a:hover {color: #94B2D1; text-decoration: none;}
a:active {color: #000000; text-decoration: none;} |
This is the order. I remember this as Love - Hate
_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog |
|
MinatureCookie
Joined: 20 Mar 2006 Posts: 68
|
Posted: Tue Jun 13, 2006 11:50 am |
|
|
|
Lol, so many times today I've been caught out by the most obvious things!
Thanks for the help.
(In IE, as I found out, even if you put the CSS in the body it works fine, FireFox isn't proving as good as it claims to be ) |
|
|
|
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 vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|