The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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

    This reply has been reported for inappropriate content.

    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:

    # January 20, 2009 at 4:40 pm

    This reply has been reported for inappropriate content.

    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.

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

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed