Jump to content

div tags with scroll bars


tet3828

Recommended Posts

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
Share on other sites

[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
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.