All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

What am I not getting about the “height” property?

  • # February 10, 2013 at 11:29 am

    If I set min-height for html and body at 1500 px then set an internal div at height:100%, the internal div doesn’t pick up the entire height (1500px) of the containing element. What gives? I thought height:100% should make that element 100% of the height of body.

    # February 10, 2013 at 11:44 am

    It makes element 100% of the browser view port size

    # February 10, 2013 at 6:40 pm

    @bluprint1 It does. In the example that you linked to, the div with the id `content_wrapper` is indeed 1200px tall, as is the body with the `min-height` property.

    Try giving the `#content_wrapper` a background color or a border, that makes it easier to see its size.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed