Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making an container a minimum height 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
how do you make a div with a border be a minimum height but allow it to grow as the content grows ?

So in my desired resolution all 4 boxes are equal height even though 1 box has much less content and should the text be enlarged they all grow together the same height.

seings cory & Vragabond just put the boot in about me using fixed heights how do I make something X high but grow with the content?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Use [tt]min-height[/tt]. It seems like a super easy solution, but IE does not cooperate -- it does not support it. You need to use a hack for IE to define [tt]height[/tt] just for IE (because IE treats height as min-height anyway) and use min-height for all other browsers.
 
have a read here:


-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
thanks guys & gals, is there the same for width?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
come on now, man. we're not your personal googlers. take a look at this link, which is not extremely different from kaht's link:


do some research yourself! that was the very first result when i typed "html css min-width" into google.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
i just used it anyway and it worked, so there was no need to google, or get a reply!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top