Hey, Could someone see if they can work out why my image is being weird in FireFox but is perfect in Interet Explorer? http://www.evolution10.co.uk/evo-wallpapers.html Thanks in advance for any help you can give.
First of all, you should set hover border to the images NOT anchor link. and because of this, you should use Class NOT ID. So: <head> <style> .wallpapers { width: 380px; padding: 2px; } .wallpapers img { border:2px solid #f00; } .wallpapers:hover img{ border: 2px solid #000; } HTML: but this code doesn't work in IE and you have to add this line for IE: .wallpapers:hover{ color: red; } </style> </head> HTML: and the body willbe : <body> <a href="/images/wallpapers/evo_desktop_001.jpg" class="wallpapers"><img alt="Evo Desktop Wallpaper 001" border="0" src="evo_desktop_001_thumb.jpg"/></a> <a href="/images/wallpapers/evo_desktop_002.jpg" class="wallpapers"><img alt="Evo Desktop Wallpaper 002" src="evo_desktop_002_thumb.jpg"/></a> </body> HTML: <head> <style> .wallpapers { width: 380px; padding: 2px; } .wallpapers img { border:2px solid #f00; } .wallpapers:hover img{ border: 2px solid #000; } .wallpapers:hover{ color: red; } </style> </head> <body> <a href="/images/wallpapers/evo_desktop_001.jpg" class="wallpapers"> <img alt="Evo Desktop Wallpaper 001" border="0" src="evo_desktop_001_thumb.jpg"/> </a> <a href="/images/wallpapers/evo_desktop_002.jpg" class="wallpapers"> <img alt="Evo Desktop Wallpaper 002" src="evo_desktop_002_thumb.jpg"/></a> </body> HTML:
Awesome, thank you! I don't know why I didn't use class on the img tags instead now I think about it after you showing me. Thanks again!