blueman378 Posted February 16, 2008 Share Posted February 16, 2008 hi guys i have this <div bgcolor="#999999" class="chat" height="100px" style="overflow:auto"> however no matter how much content is contained it will not overflow the div simply extends, any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/91379-div-overflow-not-working/ Share on other sites More sharing options...
Chris92 Posted February 16, 2008 Share Posted February 16, 2008 Try this: <div class="chat" style="background:#999999; height:100px; overflow:auto;"> Quote Link to comment https://forums.phpfreaks.com/topic/91379-div-overflow-not-working/#findComment-468357 Share on other sites More sharing options...
Daniel0 Posted February 17, 2008 Share Posted February 17, 2008 If the problem is that it extends to the side (horizontally) then try to add a width as well. Quote Link to comment https://forums.phpfreaks.com/topic/91379-div-overflow-not-working/#findComment-468667 Share on other sites More sharing options...
Guardian-Mage Posted February 20, 2008 Share Posted February 20, 2008 Instead of overflow:auto try overflow:scroll or overflow:hide. Quote Link to comment https://forums.phpfreaks.com/topic/91379-div-overflow-not-working/#findComment-472217 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.