Jump to content

IE distortion with this table


Mutley

Recommended Posts

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

 

arghsh1.jpg

 

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.

 

 

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.