sniperman
10-11-2010, 03:25 AM
Hi
I have a current coding problem. I currently have the below code as follows for all links related to anchor elements.
a:hover {
background-color:#a4cf4f;
color:#FFFFFF;
padding-bottom:1px;
padding-left:3px;
padding-right:3px;
padding-top:1px;
text-shadow:1px 1px 0 #0964A0
}
The problem is that this also applies itself by default to all image tags within an anchor tag.
<p><a href="http://www.madchaos.com.au/image.jpg"><img src="http://www.madchaos.com.au/" /></a></p>
I need to be able to have CSS treat images within anchor tags differently to text within anchor tags. This is also through a Wordpress framework so I have no real control over the mark-up in which images are displayed.
I have a current coding problem. I currently have the below code as follows for all links related to anchor elements.
a:hover {
background-color:#a4cf4f;
color:#FFFFFF;
padding-bottom:1px;
padding-left:3px;
padding-right:3px;
padding-top:1px;
text-shadow:1px 1px 0 #0964A0
}
The problem is that this also applies itself by default to all image tags within an anchor tag.
<p><a href="http://www.madchaos.com.au/image.jpg"><img src="http://www.madchaos.com.au/" /></a></p>
I need to be able to have CSS treat images within anchor tags differently to text within anchor tags. This is also through a Wordpress framework so I have no real control over the mark-up in which images are displayed.