I have defined a class for my images called .image that specifies the
default border color, width and style. I'd like to be able to have the
pseudo elements link, visited and active have one color and style, while
the hover class has a different color and style. I have the entries:
a:link .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
a:visited .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
a:hover .image {
border-color: #FC7400;
border-style: dotted;
border-width: 2px;
}
a:active .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
My HTML then has:
<a href="index.php ?cat=4"><img
src="albums/nature/flora/thumb_red%20tul ip.jpg" class="image"
width="144" height="200" alt=""></a>
This works in Firefox, but not in IE. In IE, once a page is visited
hover does not work. I've looked around for a solution but haven't found
one. Any help would be greatly appreciated! Thanks.
default border color, width and style. I'd like to be able to have the
pseudo elements link, visited and active have one color and style, while
the hover class has a different color and style. I have the entries:
a:link .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
a:visited .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
a:hover .image {
border-color: #FC7400;
border-style: dotted;
border-width: 2px;
}
a:active .image {
border-color: #151515;
border-style: solid;
border-width: 2px;
}
My HTML then has:
<a href="index.php ?cat=4"><img
src="albums/nature/flora/thumb_red%20tul ip.jpg" class="image"
width="144" height="200" alt=""></a>
This works in Firefox, but not in IE. In IE, once a page is visited
hover does not work. I've looked around for a solution but haven't found
one. Any help would be greatly appreciated! Thanks.
Comment