HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> div{ width:100px; height:100px; font-size:17px; padding:12px; border:1px solid #8c8c8c; margin:10px; } div:nth-child(2){ overflow-y:scroll; } div:nth-child(4){ overflow-y:hidden; } div:nth-child(6){ overflow-y:auto; } div:nth-child(8){ overflow-y:visible; } </style> </head> <body> <h2>overflow-y: scroll;</h2> <div> This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 100px. </div> <h2>overflow-y: hidden;</h2> <div> This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 100px. </div> <h2>overflow-y: auto;</h2> <div> Add few text Here. </div> <h2>overflow-y: visible;</h2> <div> This div contains lots of text, but the height of this div is 100px, whereas, width of this div is 100px. </div> </body> </html>
OUTPUT
×

Save as Private