I am using a bottom border on links for easier reading (compared with underlines), but only want the border to appear on text links - not images. Is there a why to set the style on a parent ('a') when you know what the child is ('img')?
HTML:
<img src="icon.png" title="Image alone" style="width:20px;height:20px" />
<a href="nowhere.html" title="Link alone">Lone link</a>
<a href="somewhere.html" title="Link image"><img src="icon.png" title="Image alone" style="width:20px;height:20px" /></a>
CSS:
a {
text-decoration: none;
border-bottom: thin solid black; /* easier to read as does not cut through g's, y's, etc */
}
img {
margin: 0;
border: thin solid black;
}
PS. Mac OSX users coding in Dreamweaver might want to try http://www.skti.org/. I started using t last week and have not looked back.
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************