CSS rules for hover conflicting
-
I have my links outlined on hover using this CSS in the twentytwelve theme:
a:hover { text-decoration: none; outline: solid; outline-width: thin; color: #235b20; padding-right: 2px; padding-left: 2px; }
but for linked images this makes a small outlined box appear on hover at the bottom of the image, not around the image. This CSS makes a dashed outline appear around the image on hover:
a:hover img{ outline: dotted; outline-width: thick; color: red; }
but it doesn’t get rid of the small green box. I get the small green box with or without image titles. I’m working offline so I can’t link to the site.
Any ideas as to why the second bit of CSS doesn’t override the first?
Thanks, Ann
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘CSS rules for hover conflicting’ is closed to new replies.