Min-Height?

They have: 5,633 posts

Joined: Jan 1970

Is there a way to set a minium height in CSS other than the "min-height"?
No browser supports the min-height see

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I don't think there is... why would there be two ways to set min height?

They have: 5,633 posts

Joined: Jan 1970

I was thinking some combnation of the css valuse would give the same effect.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

What do you intend to do?

They have: 5,633 posts

Joined: Jan 1970

I'm not happy with it but its fixed.

He has: 388 posts

Joined: Apr 2005

ah baja here another solution from the brain of Dave Shea
http://www.mezzoblue.com/archives/2004/09/16/minheight_fi/

They have: 5,633 posts

Joined: Jan 1970

Wow, thanks a lot! The only thing is, I don't want to write a page of code to make is cross-browser.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Well, it doesn't take that much. And making stuff cross-browser is just something we all have to get used to in this game.

It also depends on how much you want that dynamic height.

Nice article btw vibins, hadn't read that one yet! Smiling

a Padded Cell our articles site!

They have: 5,633 posts

Joined: Jan 1970

I gotta better alturnative....
I dont like it but it gets the job done....

<table id="Min-Height" >
<tr><td valign="top" height="500">
      <table id="Overfolw-Table">
      <tr><td>
      Allow Overflow
      </td></tr>
      </table>
</td></tr>
</table>
'

The first table should set a height in html and the second one should be allowed to overflow. So if it does overflow then it will stretch.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.