How do I create a div that has a max width/height but instead of having scollbars have nothing yet still be able to scroll? (usually done via mouse wheel, selecting text and moving the mouse down or arrrows down)
I tried hidden but that doesn't let me scroll. The other options either doesn't allow it to have a max hight or puts scrollbars.
Here is a sample demo. I'd like to have no scroll bar but be able to see eof.
<div id=main>
Text text text text text text text text...
Text text text text text text text text...
eof
</div>
#main {
max-height: 400px;
/*overflow: auto;*/
overflow: hidden;
}