<html>
<body>
<div style="width:500; height:200; border:1px solid black;">
adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>
adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>adsf<br>
adsf<br>adsf<br>adsf<br>adsf<br>
</div>
</body>
</html>

ello
I'd like to have a div with minimum height of 200px. but if we add more data in to the div the height should be increased not totally fixed you know? what can I do? :-/

the code above works for IE but not for FF XD

Recommended Answers

Use the CSS Property called min-height.

Jump to Post

All 2 Replies

Use the CSS Property called min-height.

omg tnx buddy <3

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.