PDA

View Full Version : <div width="100%" height="750px">Contents</div> ?


Apfelfrucht
03-11-2009, 04:24 AM
Hello,

Do you know how to make the automatic "height" of "<div></div>" which correspond with the contents ? I have the Contents and i put in like below :
<div width="100%" height="750px">Contents</div>

Do you know the Best method to change the height="750px" to height="auto" in <div></div> and not <table></table> ?

Regards.

Dismounted
03-11-2009, 06:18 AM
<div width="100%">Contents</div>
Don't specify a height at all...

Apfelfrucht
03-11-2009, 09:00 AM
Thanks a lot Dismounted,

It works but with style="" :
<div style="width: 600px;"></div>

Regards.