HTML CSS examples for CSS Property:overflow-x
Overflow-x element scrolled by dragging
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outer {<!-- w w w . j a v a 2s.c o m--> width:401px; height:401px; overflow:hidden; overflow-x:hidden; overflow-y:auto; } .inner { border-left:401px solid Chartreuse; border-right:401px solid yellow; height:601px; text-align:center; line-height:401px; } </style> </head> <body> <div class="outer"> <div class="inner"> </div> </div> </body> </html>