Forum Moderators: open

Message Too Old, No Replies

content overflow in Firefox on div

content overflow in Firefox on div

         

carsten888

8:03 am on Nov 21, 2005 (gmt 0)

10+ Year Member



when content of a <div> is higher then a div height 100% content overflows but background does not follow.

<body style="height: 100%;">
<div style="height: 100%; background: purple;">content Lorem....
(much more content)
...ipsum.
</div>
</body>

Robin_reala

10:25 am on Nov 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What are you expecting to happen? If you want the box to grow with the content then you want so set min-height instead of height. If you want the content to hide then set overflow:hidden. If you want the div to scoll the content inside then set overflow:auto.

carsten888

7:12 pm on Nov 21, 2005 (gmt 0)

10+ Year Member



great!

min-height was the thing I was looking for!

thank you loads.