...

View Full Version : link padding problem



jaredsr05
12-13-2005, 08: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.

_Aerospace_Eng_
12-13-2005, 08: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:

jaredsr05
12-13-2005, 08: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?

_Aerospace_Eng_
12-13-2005, 08: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum