HTML CSS examples for CSS Property:overflow
Div overflow x hidden and y shown
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .one<!--from w w w . j ava 2 s . c om--> { max-height:100px; max-width:100px; overflow-x:hidden; overflow-y:scroll; } </style> </head> <body> <div class="one"> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> <h1>Lorem ipsum </h1> </div> </body> </html>