Scrolling: DIV
Posted: Mon Aug 15, 2005 3:29 pm
How to make a div scroll to down to bottom?
I have the chat window where I want the scroll bar to scroll down as messages come on
I have the chat window where I want the scroll bar to scroll down as messages come on
Code: Select all
CSS used:
.chatWindow{
background-color:#CCCCCC;
color:#000099;
width:52%;
height:150px;
overflow:scroll;
border: 3px solid #000000;
padding:10px;
margin-top:10px;
margin-left:-5%;
margin-right:0%;
float:left;
}
<div id = 'chatWindow' class="chatWindow"></div>