Mutley Posted April 21, 2007 Share Posted April 21, 2007 I have a problem with Internet Explorer enlarging table rows. Here is a picture of both browsers side by side (IE is on left, Firefox on right): Full size image here: http://img401.imageshack.us/img401/3291/arghna6.jpg As you can see IE has a grey sort of bar beneath the red one (same row) and each row is spaced. The code for the header section: <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <td class="header" height="100" width="80%" colspan="3"><center><h1>J.J.Metcalfe & Son</h1></center></td> <td rowspan="3" width="20%" style="border:#000000 1px solid; background-color:#FFFFFF"> <marquee scrollamount="3"> <table class="productlist" width="100%" border="0" cellspacing="0" cellpadding="3"> <tr> <?php include('includes/sql_connect.php'); $sql = "SELECT id, category, name, cpn, pn, description, descriptionf, descriptiong, weight, price, ofeatured, onew, osale FROM products WHERE ofeatured='1'"; $result = mysql_query($sql) or die("SQL Query: {wordwrap($sql)}<br />Error because: " . mysql_error()); if(mysql_num_rows($result)!=0) { while(list($id, $category, $name, $cpn, $pn, $description, $descriptionf, $descriptiong, $weight, $price, $ofeatured, $onew, $osale) = mysql_fetch_row($result)) { ?> <td> <center> <a href="viewproduct.php?id=<?=$id?>"> <?php $filelocation = "images/products/$id.jpg"; if(file_exists($filelocation)) { echo "<img src=\"image_thumbs.php?id=$id\" alt=\"$cpn\" />"; } else { echo "<img src=\"images/products/noimage.png\" alt=\"No Image\" />"; } ?> </a><br /> <font class="pn"><?=$cpn?>/<?=$pn?></font><br /> </center> </td> <?php } } else { echo "No Featured Products."; } ?> </tr> </table> </marquee> </td> </tr> <tr> <td class="infobar" colspan="3"><center>Tel: 0044 (0)1609 771124 Fax: 0044 (0)1609 760635</center></td> </tr> <tr> <td class="searchbar" colspan="3"><center><? include('search.php'); ?></center></td> </tr> </table> In the CSS it only changes font colour and style, nothing to do with the tables/padding. Quote Link to comment https://forums.phpfreaks.com/topic/48013-ie-distortion-with-this-table/ Share on other sites More sharing options...
tarun Posted April 22, 2007 Share Posted April 22, 2007 Hmmm.... Run It Through The W3 HTML Validator Quote Link to comment https://forums.phpfreaks.com/topic/48013-ie-distortion-with-this-table/#findComment-235479 Share on other sites More sharing options...
Mutley Posted April 22, 2007 Author Share Posted April 22, 2007 It's clean table wise, only errors are spaces and text characters. Quote Link to comment https://forums.phpfreaks.com/topic/48013-ie-distortion-with-this-table/#findComment-235518 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.