Internet Explorer link colors (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


paddster7 -> Internet Explorer link colors (12/5/2007 20:17:22)

At the following site (http://www.tropical-yacht-repair.com/), which was made by Dreamweaver CS3, is a single "Under Construction" image. If you look at the source code for this very simple web page, you will see that specific colors have been designated for link, visited, hover & active link colors.

When previewing this web page with Firefox, Safari, Navigator, Opera, Camino & SeaMonkey, the correct link colors are being displayed. However, when using Internet Explorer, version 7.0.6000.16546, the default IE link colors are being displayed. (Blue - link; Purple - visited)

Can you give me any ideas how to get IE to display the designated colors for links, without causing the link colors in the other browsers to break.

Thanks.




Tailslide -> RE: Internet Explorer link colors (12/6/2007 2:29:30)

Ok here you go, this should get around IE's stupidity:


<style type="text/css">
<!--
img {border:none;}
.imagelink img{border: 1px solid pink;}
.imagelink:visited {border: 1px solid orange;}
.imagelink:focus img, .imagelink:hover img, .imagelink:active img{border: 1px solid green;}
.imagelink:hover {color: red; /* irrelevant definition to overcome IE bug */}

-->
</style>
</head>

<body>
<a href="#" class="imagelink"><img src="http://www.tropical-yacht-repair.com/images/under-construction.jpg" width="680" height="492" alt="Under Construction" /></a>
</body>
</html>




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875