Grow your CSS skills. Land your dream job.

Can you set 2 height settings? CSS

  • # January 20, 2009 at 11:02 am

    I was wondering if there is a way to set 2 height settings in CSS. for example what I am intersted in is having a height set on a div that is a set height of say.. 200px but also set at 100% so that it will fit to size of the content that is in it on pages that have more stuff in that div. Does that make sense?

    # January 20, 2009 at 11:09 am

    You can do something like "min-height" instead, but as far as I’m aware IE6 does not support that statement.

    Here is a tiny little hack to make it work though:
    http://www.dustindiaz.com/min-height-fast-hack/

    # January 20, 2009 at 4:40 pm

    That worked great. Thank you so much.

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