tet3828 Posted November 7, 2006 Share Posted November 7, 2006 I thought I posted this topic a sec ago maybe a mod removed it or something? I don't know.anyway I am trying to get the code within my div tags to display in a windowed area with vertical scroll bars. my current tags aren't working for some reason. Maybe they are the incorrect tags. Please help. I commented the line of code where I put the alledged div tags.[code]echo "<DIV id=\"scroll3\" style=\"width:500;height:350;overflow:auto; border: 1px solid\"><p><center>"; \\non-working div tags whats the problem?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=/shell/data/edit.php?id=".$row['itemId']." />Edit This Item</td>\n" ."</tr>\n";}echo "</table>\n";}echo "</center></center></p></DIV>"; \\\This should close the windowed area?>[/code] Link to comment https://forums.phpfreaks.com/topic/26515-div-tags-with-scroll-bars/ Share on other sites More sharing options...
ToonMariner Posted November 8, 2006 Share Posted November 8, 2006 give your width/height 'px'PS the other post prob moved to the html help - which is what this is Link to comment https://forums.phpfreaks.com/topic/26515-div-tags-with-scroll-bars/#findComment-121295 Share on other sites More sharing options...
doni49 Posted November 8, 2006 Share Posted November 8, 2006 [quote author=tet3828 link=topic=114206.msg464603#msg464603 date=1162943959]I thought I posted this topic a sec ago maybe a mod removed it or something? I don't know.[/quote]I think it's pretty doubtful that within seconds of you posting a thread, a mod (or anyone else) would come in and move a thread--pretty far out odds. However, I think they'd have been right to do so. What you're asking about is not a PHP question. It's an HTML/CSS question. Just because you created the HTML/CSS using PHP echo statements, doesn't make it a PHP question.Now that being said, I do NOT know the answer to your question. Link to comment https://forums.phpfreaks.com/topic/26515-div-tags-with-scroll-bars/#findComment-121299 Share on other sites More sharing options...
bqallover Posted November 8, 2006 Share Posted November 8, 2006 Yes, HTML?CSS question! ahem... ;)I copied your code (minus the div contents) and it worked fine on IE and FireFox. I fear your problem lies elsewhere, unless of course you have actually included those comments? It's //, not \\. Link to comment https://forums.phpfreaks.com/topic/26515-div-tags-with-scroll-bars/#findComment-121306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.