Jump to content

Help with Internet Explorer Compatability


BrandonKahre

Recommended Posts

I have a table that looks good in FireFox, but not in IE6/7.  Can anyone help me find the IE fix?  I know it has to do with the table.sizingTable's padding.

Markup:
[code]<table cellspacing="0" class="sizingTable">
  <thead>
  <tr>
<td colspan="5"><img src="/images/sizingcharts/text.swimwear-sizes.jpg" alt="Swimwear Sizing" /></td>

  </tr>
  </thead>
  <tbody>
  <tr>
<th class="firstcell"></th>
<th>Small</th>
<th>Medium</th>
<th class="lastcell">Large</th>

  </tr>
  <tr>
<td class="firstcell">Waist</td>
<td>
<small>IN</small> 26-30<br />
<small>CM</small> 69-76
</td>

<td>
<small>IN</small> 30-34<br />
<small>CM</small> 76-86
</td>
<td class="lastcell">
<small>IN</small> 34-38<br />

<small>CM</small> 86-97
</td>
  </tr>
  </tbody>
</table>[/code]

CSS:
[code]/* Sizing Charts */
table.sizingTable {
background: #FFF url(/images/sizingcharts/bg.jpg) no-repeat 0 0;
text-align: left;
border: 0;
padding: 50px 0 20px 50px;  /* IE Error here */
margin: 20px auto;
}
table.sizingTable thead tr td {
padding-bottom: 7px;
}
table.sizingTable tbody tr th {
width: 110px;
font-size: 110%;
font-weight: 600;
text-transform: UPPERCASE;
text-align: center;
border-top: 2px solid #000;
padding: 5px 0;
margin: 0;
}
table.sizingTable tbody tr th.firstcell {
width: 80px;
border: 0;
}
table.sizingTable tbody tr td {
font-size: 105%;
font-style: italic;
text-indent: 5px;
border-top: 2px solid #999;
border-right: 2px solid #999;
padding: 5px 0 15px 15px;
}
table.sizingTable tbody tr td small {
font-size: 70%;
font-style: normal;
}
table.sizingTable tbody tr td.firstcell {
width: 80px;
font-size: 110%;
vertical-align: middle;
text-align: left;
text-indent: 0;
text-transform: UPPERCASE;
padding: 0;
border: 0;
}
table.sizingTable tbody tr td.lastcell {
border-right: 0;
}[/code]

I played around with my ideas, but I couldn't get anything to work in IE.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.