Jump to content

A table within Scrollbars. Problem


tet3828

Recommended Posts

I am trying to display a looooong table within a window containing vertical scroll bars. I've tried using div tags around the dynamic table. I set the tag diminsions to  500 width and 350 height. but for some reason instead of making a window with scrollbars it just creats a bounding box..

whats up with that? Am I using the wrong code? I commented near my existing tags
[code] 
echo "<DIV id=\"scroll3\" style=\"width:500;height:350;overflow:auto; border: 1px solid\"><p><center>";   \\\there is my non-working div tag.
echo "<table border=3>\n"
."<tr>\n"
."<th>Item Picture</th>\n"
."<th>Name</th>\n"
."<th>ID #</th>\n"
."<th>Catagory</th>\n"
."<th>Price</th>\n"
."<th>Edit Link</th>\n"
."</tr>\n";

while($row = mysql_fetch_array($result))
{
echo "<tr>\n"
."<td><center><img src=\"".$row['itemSmall']."\" height=\"75\" width=\"75\"  /></center></td>\n"
."<td>".$row['itemName']."</td>\n"
."<td>".$row['itemId']."</td>\n"
."<td>".$row['itemCat']."</td>\n"
."<td>".$row['itemPrice']."</td>\n"
."<td><a href=/****/****/****.php?id=".$row['itemId']." />Edit This Item</td>\n"
."</tr>\n";
}

echo "</table>\n";
}
echo "</center></center></p></DIV>";          \\\Closing div tag

?>
[/code]
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.