On my site I have used CSS to create a border around my links whenever the pointer hovers on them. For this task I have used this:
This does mean that any images that are used as links also get this border. I don't want that! I tried using:
But that didn't work. I then tried img a:hover, a img:hover and img:hover a (I know those last two wouldn't work, but I tried :P).
What should I use?
Code:
a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: bold; color: #6699CC; padding: 1px; } a:Hover { text-decoration: none; background-color: #999999; color: #FFFFFF; border: 1px #666666 solid; padding: 0px; height: auto; }
Code:
a:hover img { background-color: transparent; border: none; padding: 1px; }
What should I use?
Comment