how do I set a div that is when empty from content would have a certain height, and if content takes more space the div would expand it's height to fit all the content?
basicly I have a bunch of pages that go like this-
<body> <div> ..contant.. </div></body>
, and something else on each page, so the div's height is changing everytime and it looks bad, espacially when the page has 2 lines ..I know I can set it like this- <div style="height :120px;> but then if there are more lines than I thought they are going outside the div's lines..