View Full Version : link padding problem

12-13-2005, 09:23 AM
On a page with both text and img links, I want to add padding only to the text links when they are hovered over. Not the img links. Any way I can achieve this? Thanks in advance for any help.

12-13-2005, 09:24 AM
Post your code or a link to the page. The link is preferred. Not everyone codes the exact same pages you know. :rolleyes:

12-13-2005, 09:26 AM
a:hover {padding: 0px 2px;}

I want this to add a 2px padding to the left and right of text links. How can I prevent it from adding the 2px padding when an img link is hovered over?

12-13-2005, 09:34 AM
You are going to have to give a class to the links that don't have images then just apply the padding to the links with that class.