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: #1c87c9; color: #fff; height: 60px; width: 200px; overflow-y: scroll; } </style> </head> <body> <h2>Overflow-y property example</h2> <h3>Overflow-y: scroll</h3> <div class="scroll">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</div> </body> </html>