PDA

View Full Version : Is there a way for Auto Height in a DIV?


Chapo
11-02-2009, 05:16 AM
Just want to figure out if the height of a DIV could auto adjust like the width does when you expand or colapse a browser. I want the Wrapper to adjust to different heights. I know that with tables its simple, but sure if DIV could also do it.

I did a site with this but was made with tables..
http://www.internationalclosets.com/closet.html
You will se that the height adjusts when the browser colapses or expands.. can i do that with DIVs ?

DWcourse
11-03-2009, 12:11 AM
On your page the height of the table is adjusting to the content as the width of the table changes. The same thing will happen in a div if you don't assign a height to it. Just give it a % based width and you should be fine.