fanderson
February 11th, 2008, 04:05 PM
I have a series of four images with text that are all a hrefs. I would like the text to be underlined but not the photographs. The xhtml is like this:
<a href="docs/New_Patient_Form.pdf"><img class="forms" src="photos/form-new_patient.jpg" alt="New Patient Form" /><br />
New Patient Form</a>
The CSS looks like this:
.forms a:hover img{
text-decoration: none;
}
Any suggestions for getting rid of the underline under the image?
Thanks.
<a href="docs/New_Patient_Form.pdf"><img class="forms" src="photos/form-new_patient.jpg" alt="New Patient Form" /><br />
New Patient Form</a>
The CSS looks like this:
.forms a:hover img{
text-decoration: none;
}
Any suggestions for getting rid of the underline under the image?
Thanks.