![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. (snip) My HTML then has: a href="index.php?cat=4"><img src="albums/nature/flora/thumb_red%20tulip.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. |
#3
| |||
| |||
|
|
JLahm <jlahm (AT) columbus (DOT) rr.com> wrote: 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. (snip) My HTML then has: a href="index.php?cat=4"><img src="albums/nature/flora/thumb_red%20tulip.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. IE has, shall we say, issues with :hover. You will in all likelihood need to do the hover effect on a, and not on img. Unless a smartguy comes along knowing a little more than me... |
#4
| |||
| |||
|
|
Or a smart girl? ;-) |
|
Pics on my site have no issues with it, but iirc, I had to state the general a:link, a:visited etc colours first, and then later in the stylesheet make the a:link img, a:visited img etc styles. |
|
Feel free to check my stylesheets. All colours, including link colours and border colours on linked images are in http://locusmeus.com/colors.css |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
There is way to make ":hover" to work on any element but at a cost, your css won't validate and it requires aa extra script but it will only effect IE6. http://www.xs4all.nl/~peterned/csshover.html Note: This is an IE6 only script. |
#7
| |||
| |||
|
|
Els: On an earlier reply you pointed me to your website. Using Firefox it works fine, but with IE6.0 it doesn't always highlight an image when you hover over it. I will look at your css more closely as it seems that (usually) it is just the last image clicked that does not get highlighted when you hover over it (which is better than mine does!). |
#8
| |||
| |||
|
|
JLahm wrote: Els: On an earlier reply you pointed me to your website. Using Firefox it works fine, but with IE6.0 it doesn't always highlight an image when you hover over it. I will look at your css more closely as it seems that (usually) it is just the last image clicked that does not get highlighted when you hover over it (which is better than mine does!). Can you give me an example of where you saw this happening? I just checked in IE6.0 (XP), and all pics change their border- color on hover, no matter if I clicked them before or not. The only way to stop them from being affected, is to click one, then drag the mouse away from it, before releasing the mouse- button. But then it has the :active colour, which I set to be the same as the :hover colour. |
#9
| |||
| |||
|
|
Els wrote: JLahm wrote: [img border-color changing on hover in IE6] Using Firefox it works fine, but with IE6.0 it doesn't always highlight an image when you hover over it. Can you give me an example of where you saw this happening? Els: I noticed it on your home page when using IE6.0. Initially, all have an orange? border. The cute baby picture will change to a blue border when you hover over it, but the others do not change. If I click on any image and then return to the home page, that image will now have a blue (active) border. However, the only one that will turn from orange to blue is still the baby image. When I go to the Rotterdam images, all work just fine. When I use Firefox, the front page also works fine (all images will change to a blue border when you hover over one). Hope this helps! |
![]() |
| Thread Tools | |
| Display Modes | |
| |