Hi,
I wrote a chat like application in which I use a div to show what was written by each side. I am using the following CSS code:
[HTML]
.chatBody
{
border:1px solid black;
background:whit e;
width: 370px;
height: 150px;
position:relati ve;
top:10px;
left:10px;
overflow-y: scroll;
}
[/HTML]
every time a new value is enter into the DIV the scrollbar of the div jump upwards. What can I do in order to keep the scrollbar alway on the bottom of the DIV?
Thanks
Ronen
I wrote a chat like application in which I use a div to show what was written by each side. I am using the following CSS code:
[HTML]
.chatBody
{
border:1px solid black;
background:whit e;
width: 370px;
height: 150px;
position:relati ve;
top:10px;
left:10px;
overflow-y: scroll;
}
[/HTML]
every time a new value is enter into the DIV the scrollbar of the div jump upwards. What can I do in order to keep the scrollbar alway on the bottom of the DIV?
Thanks
Ronen
Comment