tet3828 Posted November 7, 2006 Share Posted November 7, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/26509-a-table-within-scrollbars-problem/ Share on other sites More sharing options...
AndyB Posted November 7, 2006 Share Posted November 7, 2006 Try it again but add units to the width/height of the div stylingExample code: http://www.htmlite.com/faq015.php Quote Link to comment https://forums.phpfreaks.com/topic/26509-a-table-within-scrollbars-problem/#findComment-121261 Share on other sites More sharing options...
richei Posted November 8, 2006 Share Posted November 8, 2006 and you need to tell it what kind of unit to use, width:500;height:350, should be, width:500px;height:350px Quote Link to comment https://forums.phpfreaks.com/topic/26509-a-table-within-scrollbars-problem/#findComment-121430 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.