Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div.scroll { background-color: #ccc; width: 50px; overflow-x: scroll; } div.hidden { background-color: #ccc; width: 50px; overflow: hidden; } div.auto { background-color: #ccc; width: 50px; overflow: auto; } div.visible { background-color: #ccc; width: 50px; overflow: visible; } </style> </head> <body> <h2>Overflow-x property example</h2> <h3>overflow-x: scroll</h3> <div class="scroll"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </div> <h3>overflow-x: hidden</h3> <div class="hidden"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </div> <h3>overflow-x: auto</h3> <div class="auto"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </div> <h3>overflow-x: visible</h3> <div class="visible"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. </div> </body> </html>