Previous Message
Next Message

Re: [css-d] Need help with contextual selectors

Sent by Duncan O'Neill on 24 April 2002 23:11


Martin wrote;

> I want all my text links by default to have a border of 2px and 
> switch the backgrond color on hover. 

> So far so good. Of course I need to turn off the border for every 
> image nested inside <a> tags. I should be able to do so by using 
> contextual selectors or so I thought but whatever I try the darned 
> borders around my image buttons won't go away.
> I tried adding
> 
> img a { border: solid 0px } or
> 
> a img { border: solid 0px }

Martin,

I haven't tested this, but have you tried taking out the 
"solid"?

i.e. a img {border:0px;
}

hth,

Duncan O'Neill
The Urban Legend magazine
http://homepages.ihug.co.nz/~dbaxo/urban_legend.htm
=============================================
Previous Message
Next Message

Possibly related: