Does giving #sideNavBar li a { } a rule of border:none help? Text- decoration has nothing to do with a border.
Theresa On Nov 7, 2009, at 3:29 PM, Brian M. Curran wrote: > Hi, > In IE7 and Firefox the advertisement on my site > http://www.locallaw11of1998.com/ > has an unwanted border around it, because it is a link. The ad is a > CSS list as the code below shows. I tried a few ways of giving it > text-decoration: none; but that didn't work. Does anyone know how to > get rid of the border? > > #sideNavBar { > padding: 0 10px; > margin: 0; > width: 140px; > } > #sideNavBar li { > list-style: none; > margin: 0; > padding: 2px 0; > } > #sideNavBar li a { > display: block; > } > #sideNavBar li img { > vertical-align: bottom; > } > > The home page HTML is: > <div id="contentIndex3"> > <h2>Ads</h2> > <hr/> > <ul id="sideNavBar"> > <li id="t-ad1"><a href="http://www.brianmcurran.com" > target="_blank"><img src="images/BrianMCurranAd.gif" width="120" > height="90" alt="BrianMCurranAd" /></a></li> > </ul> > </div> > > Thanks, > Brian > ______________________________________________________________________ > css-discuss [cs...@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/