<html>
<head>
<style>
<!--
.chatarea
{
margin-right: 3cm;
position: relative;
width: 512;
height: 256;
border-style: inset;
border-width: 6;
padding-left: 4;
padding-right: 4;
padding-top: 1;
padding-bottom: 1;
overflow: scroll
}
-->
</style>
</head>
<body>
<div class="chatarea"></div>
</body>
</html>
Problem? Long unbroken words that go beyond the end of the box force the horizontal scroll bar out, and I don't want that. In fact, I don't want a horizontal scroll bar to be visible at all.
I also want the vertical scroll bar to have the text scrolled to the bottom initially (when content is added into the <div>, of course).
How do I do all of that?
Tags: