Jump to content


Photo

Help with Internet Explorer Compatability


  • Please log in to reply
1 reply to this topic

#1 BrandonKahre

BrandonKahre
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 15 September 2006 - 05:03 PM

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:
<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>

CSS:
/* 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;
		}

I played around with my ideas, but I couldn't get anything to work in IE.

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 16 September 2006 - 02:25 AM

put a link up so we can follow it in both browsers.  then we can se what it shoudl look like and what it does look like in ie.
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users