We would like to know how to show first messages at bottom of DIV and move up.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#chat {<!-- www. j ava 2 s. c o m-->
display: table;
height: 200px;
width: 200px;
border: 1px solid #000;
}
.chatMessage {
display: table-cell;
vertical-align: bottom;
}
</style>
</head>
<body>
<div id="chat">
<div class="chatMessage">
<p>test</p>
<p>test 2</p>
</div>
</div>
</body>
</html>
The code above is rendered as follows: