I'm a css noob, and though I want this DIV to resize when the window is resized, I don't want inner content to change the size of it.
A:
Have you looked into CSS and the overflow
directive? You can use this to tell the div to scroll or truncate/hide its content when the content is too large.
Jeremy DeGroot
2009-03-02 22:30:48
+2
A:
Use the overflow statement. e.g.
overflow: hidden; /* all content hidden as it spills over */
overflow: auto; /* Scroll bars appear on div when required to allow moving around */
overflow: scroll; /* Scroll bars will be present at all times */
Richard
2009-03-02 22:32:44
use /* for css comments */
alex
2009-03-02 23:55:44
//why you ask? IE6 will ignore any commented declarations! // display:totally-messed-up
garrow
2009-03-03 12:58:50
Oops sorry about the //, was on a c# thing at the time
Richard
2009-03-04 13:00:10