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
https://forums.phpfreaks.com/topic/26509-a-table-within-scrollbars-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.