|
OverflowCSSProperty
The overflow property specifies whether content of a block-level element is clipped when it overflows the element's box.
You are here: Home > CSS Reference > Properties > overflow Usageoverflow: auto or overflow: hidden will force a container to expand to encompass its contents. Be careful with dynamic content (such as Javascript menus), because they might be clipped. Values
Browser compatibility
Further reading |
Sign in to add a comment
overflow: auto or overflow: hidden will force a container to expand to encompass its contents. Be careful with dynamic content (such as javascript menus) because they might be clipped. Very useful for working around IE display bugs as well.
Chrome can't read overflow property. What's wrong with my code? <html> <head></head> <body> <div id="test" style="overflow:hidden;"> test </div> <script> alert(document.getElementById('test').style.overflow); </script> </body> </html>