Forum Moderators: not2easy
<div id="concessions">
<ul>
<li><a href="#Varsity"><span>Varsity</span></a></li>
<li><a href="#JV"><span>JV</span></a></li>
<li><a href="#Freshman"><span>Freshman</span></a></li>
</ul>
<div id="Varsity" class="anchor">
<table id="varsity" cellpadding="5" cellspacing="5">
..... table stuff displays here...
The table displays fine in both FF and IE. Here is the pertinent css code for the table varsity - I do not have any css definitions for Varsity (capital letter) or concessions (yet)
#varsity, #jv, #freshman {
text-align: center;
font-size: 100%;
border-left: 5px double #bebea9;
border-top: 5px double #bebea9;
border-right: 5px double #909070;
border-bottom: 5px double #909070
}
In FF everything displays great - in IE, I get 2 double borders around the table - does anyone have any idea of how I can get rid of this second double border or where it's coming from in IE?
#varsity, #jv, #freshman {
text-align: center;
font-size: 100%;
border-left: 5px double #bebea9;
border-top: 5px double #bebea9;
border-right: 5px double #909070;
border-bottom: 5px double #909070
* border-left: 5px double #bebea9;
* border-top: 5px double #bebea9;
* border-right: 5px double #909070;
* border-bottom: 5px double #909070
}
copy and paste the entire code along with the stars and you can change values to the code with the stars for the desired effect in IE, dont worry, this code will not affect other browsers. What this does is, IE reads the code with the stars while other browsers read the code without the stars, works for me very good !
I'll have to remember this for future IE problems (of which there seem to be many)...I'd suggest not - it is a hack, and invalid code. Better to locate the source of the trouble rather than adding extra code to fix the symptom, code to avoid it, and on the rare occassion ie must be sent different rules, do so via conditional comments.
On the issue itself, I could not reproduce the reported trouble on the css provided. That indicates the cause lies elewhere. Try validating your css and html, then follow the other steps in the CSS Troubleshooting refresher [webmasterworld.com] (pinned to the top of the forum) to isolate the issue. If there are still problems, post back with more information.