Grow your CSS skills. Land your dream job.

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.

    http://test.salonelevenconway.com/test.html

    # 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.

*May or may not contain any actual "CSS" or "Tricks".