tags:

views:

189

answers:

4

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: 

set overflow: hidden on the containing div

John Sheehan
+1  A: 

Try using:

div {
  overflow: hidden;
}

Read more here.

James Burgess
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
+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
use /* for css comments */
alex
//why you ask? IE6 will ignore any commented declarations! // display:totally-messed-up
garrow
Oops sorry about the //, was on a c# thing at the time
Richard