[thelist] CSS selector style inheritance

Stephen Caudill SCaudill at municode.com
Tue Sep 10 12:00:01 CDT 2002


Dave Stevens wrote:

DS>I may be wrong, but I think if you add
DS>border: 0px;
DS>in your css for img then it should stop happening.

Yeah, I tried that, also tried:
img{border-bottom:none}
a img{border-bottom:0px none;
and various other combinations also including the !important value to make sure it took precedence.

DS>Alternatively, though I don't know whether this is a bad idea, putting
DS>border="0" in your actual img tag will definitely stop this.

  Since the site I am working on is 300 some pages chock full of all sorts of other no-no's like font tags and tables nested 10 layers deep for absolutely no reason, I would hate to use a hack that would need to be implemented at every hyperlinked image tag.
  Am I just missing something here? I have been writing CSS controlled sites for over a year now and I don't recall having this issue ever before.  Please enlighten me.

Stephen Caudill
Web Designer
Municipal Code Corporation
www.municode.com
www.mccimaging.com



More information about the thelist mailing list