Um.. Sorry I see what you are trying to do now.. I read that a bit too
fast the first time ...
Good question!
Chris Blown wrote:
how about
a img {
... }
though i'd rather see
#nav a img {
...
}
See for more info --->
http://www.westciv.com/style_master/academy/css_tutorial/selectors/descendant_selectors.html
Cheers
Chris
RMW Web Publishing wrote:
I trying do solve a selector (see
http://css.maxdesign.com.au/selectutorial/selectors_type.htm) that
I'm not sure can even be solved (without changes to my HTML)
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
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************