Forum Moderators: not2easy
I have a table where the <tr> has a Bottom-Border of 1px set in an external style sheet. This gives the illustion of a table made of rows instead of cells. You know what I mean.
The thing is, it works great in Firefox but it dosen't show up in IE(6). Anyone have an idea. Here's a little CSS and HTML.
/* ========== Parts & Accessories */
#parts_accessories{
clear:both;
margin-bottom:20px;
border-right: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5;
}
#parts_accessories th{
font-size:11px;
color:#fff;
text-align:center;
background:#666;
font-weight: bold;
padding:5px 0;
border-bottom: 1px solid #e5e5e5 !Important;
}
.pa_bg_cell{
border-bottom: 1px solid #e5e5e5 !Important;
}
.pa_bg_cell_off{
border-bottom: 0px solid #e5e5e5 !Important;
}
.pa_tbl_content{
text-align:left !Important;
padding:8px !Important;
font-size:11px;
color:#666;
vertical-align:middle;
}
.pa_tbl_contentBold{
text-align:left !Important;
padding:8px 0 8px 8px !Important;
font-size:11px;
font-weight: bold;
color:#666;
vertical-align:middle;
}
.centered{
text-align:center !Important;
vertical-align:middle;
padding:5px !Important;
}
And the HTML:
<!-- parts & accessories start -->
<div class="product_head">Parts & Accessories</div>
<table width="100%" cellspacing="0" id="parts_accessories" summary="Parts & Accessories">
<tr>
<th class="centered pa_tbl_content" abbr="Image">Image</th>
<th class="pa_tbl_content" abbr="Image">Item</th>
<th class="pa_tbl_content" abbr="Image">Size</th>
<th class="centered pa_tbl_content" abbr="Image">Part Number</th>
<th class="centered pa_tbl_content" abbr="Image">UPC Code</th>
<th class="centered pa_tbl_content" abbr="Image">Dimensions</th>
<th class="pa_tbl_content" abbr="Image">Weight</th>
</tr>
<tr class="pa_bg_cell_off">
<td class="centered"><img src="images/P20-4-thmb.jpg" alt="" /></td>
<td class="pa_tbl_contentBold">Kit</td>
<td class="pa_tbl_content"> </td>
<td class="centered pa_tbl_content">253026</td>
<td class="centered pa_tbl_content">662679994648</td>
<td class="centered pa_tbl_content">27.75" x 17" x 8.25" </td>
<td class="pa_tbl_content">76 lbs</td>
</tr>
<tr class="pa_bg_cell">
<td class="centered"> </td>
<td class="pa_tbl_contentBold">Kit (without <br />
Jaws)</td>
<td class="pa_tbl_content"> </td>
<td class="centered pa_tbl_content">253026-T</td>
<td class="centered pa_tbl_content">662679997748</td>
<td class="centered pa_tbl_content">27.75" x 17" x 8.25"</td>
<td class="pa_tbl_content">24.8 lbs</td>
</tr>
<tr class="pa_bg_cell">
<td class="centered"><img src="images/copperjaw-thmb.jpg" alt="" /></td>
<td class="pa_tbl_contentBold">Copper Jaw</td>
<td class="pa_tbl_content"><p>1/2"<br />
3/4"<br />
1"<br />
1 1/4"<br />
1 1/2"<br />
2"</p> </td>
<td class="centered pa_tbl_content">253291<br />
253292<br />
253293<br />
253294<br />
253295<br />
253296<br /></td>
<td class="centered pa_tbl_content">662679994662<br />
662679994679<br />
662679994686<br />
662679994693<br />
662679994709<br />
662679994716</td>
<td class="centered pa_tbl_content">6" x 4" x 2"
<br />
7" x 4" x 2"
<br />
6.5" x 5" x 2"
<br />
6.5" x 5" x 3"
<br />
8" x 7.5" x 2.25"
<br />
9" x 7.5" x 2.25" </td>
<td class="pa_tbl_content">4.1 lbs<br />
4.1 lbs<br />
5 lbs<br />
5 lbs<br />
11.75 lbs<br />
11.75 lbs</td>
</tr>
<tr class="pa_bg_cell">
<td class="centered"><img src="images/P20battery-thmb.jpg" alt="" /></td>
<td class="pa_tbl_contentBold">Battery</td>
<td class="pa_tbl_content">14.4V<br />
MAKITA </td>
<td class="centered pa_tbl_content">252932</td>
<td class="centered pa_tbl_content">662679994075</td>
<td class="centered pa_tbl_content">3.7" x 3.7" x 4.2" </td>
<td class="pa_tbl_content">3 lbs</td>
</tr>
<tr class="pa_bg_cell">
<td class="centered"><img src="images/P20charger-thmb.jpg" alt="" /></td>
<td class="pa_tbl_contentBold">Charger</td>
<td class="pa_tbl_content">14.4V<br />
MAKITA </td>
<td class="centered pa_tbl_content">252928</td>
<td class="centered pa_tbl_content">662679994082</td>
<td class="centered pa_tbl_content">9.5" x 3.4" x 3.4" </td>
<td class="pa_tbl_content">2.5 lbs</td>
</tr>
</table>
<!-- parts & accessories end -->
The thing is, it works great in Firefox but it dosen't show up in IE(6).
Add a type selector to your class .pa_bg_cell:
.pa_bg_cell td {
border-bottom: 4px solid #e5e5e5 !important;
}
and add the rule:
table {
border-collapse:collapse;
}
A lot of work has obviously gone in here - but on the sample provided, have you considered simplifying the styling so you can avoid using so many classes?