Table cell height attributes in IE
Posted: Fri Mar 26, 2004 1:13 pm
Hi,
I'm having a bit of compatability prob with IE. I've constructed a site in tables with PHP which all works fine in Netscape. Some of my cells have specified sizes (some in % and others in fixed pixels).
Internet explorer seems to not understand the dimensions I am putting in and ignores them whereas netscape handles it fine.
I'm typically doing this
Any idea why explorer is ignoring my width and height attributes?
You can check it in both browsers at http://nitrotones.tk
if you want to see what I mean.
Thanks
I'm having a bit of compatability prob with IE. I've constructed a site in tables with PHP which all works fine in Netscape. Some of my cells have specified sizes (some in % and others in fixed pixels).
Internet explorer seems to not understand the dimensions I am putting in and ignores them whereas netscape handles it fine.
I'm typically doing this
Code: Select all
echo '<table border="0" cellpadding="15" cellspacing="0" align="center" Width="100%" height="95%">';
echo '<tr>';
echo '<td rowspan="3" bgcolor="#91C4F2" valign="top" width="220">';
include('navbar.html');
echo '</td>';
echo '<td colspan="3" height="60" align="center" bgcolor="#2B53C5">';
include ('logo.html');
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="3" height="60" bgcolor=#D6E9FD valign="top">';
switch ($location) {
case 'index':
include ('default.php');
break;
}
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td width="35%" bgcolor=#D6E9FD valign="top">';
switch ($location) {
case 'index':
include ('mainleft.html');
break;
}
echo '</td>';
echo '<td bgcolor=#D6E9FD>';
switch ($location) {
case 'nok_a':
include ('img/codeloader.php');
break;
}
echo '</td>';
echo '</tr>';
echo '</table>';You can check it in both browsers at http://nitrotones.tk
if you want to see what I mean.
Thanks