onthespot Posted August 25, 2009 Share Posted August 25, 2009 Hello. I have been creating a shoutbox. And have it all working, except I need to make the whole thing display in a scroll box, so it doesnt just go on and on down the page, does anyone have any idea how I do this? This is my code.... echo "<table cellspacing=\"1\">"; if(($count % 2) != 0) { echo "<p class='odd'>"; echo "<tr><td width=\"70\">$dtime</td>"; echo "<td width=\"100\">$shouter_name</td>"; echo "<td>$shout_content"; echo "</td></tr>"; echo "</p>"; } else { echo "<p class='even'>"; echo "<tr><td width=\"70\">$dtime</td>"; echo "<td width=\"100\">$shouter_name</td>"; echo "<td>$shout_content"; echo "</td></tr>"; echo "</p>"; } $count++; echo "</table>"; Of course that Is only a snippet, but thats the only part that will be of significance for this question. Thankyou Link to comment https://forums.phpfreaks.com/topic/171814-shoutbox-scroll-box/ Share on other sites More sharing options...
mikesta707 Posted August 25, 2009 Share Posted August 25, 2009 This is more or less a CSS question. You will probably want to simply create a style that is however long, and however wide you want it to be, and have it be scrollable. here is a CSS tutorial: http://www.w3schools.com/Css/default.asp Link to comment https://forums.phpfreaks.com/topic/171814-shoutbox-scroll-box/#findComment-905958 Share on other sites More sharing options...
onthespot Posted August 25, 2009 Author Share Posted August 25, 2009 Sorry I thought that if someone were to show me an example, as its using echo, this would be the correct place to ask. Thanks for the link Link to comment https://forums.phpfreaks.com/topic/171814-shoutbox-scroll-box/#findComment-905966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.