HTML CSS examples for CSS Property:overflow-x
CSS: make overflow-x: hidden
<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 2 s. co m--> width:151px; height:301px; overflow-x:hidden; border:2px solid Chartreuse; } #inner { overflow:hidden; width:100%; } </style> </head> <body> <div id="outer"> <div id="inner"> Lorem ipsum dolor sit amet, consectetur adipiscing <br>Lorem ipsum dolor sit amet, consectetur adipiscin <br> <img src="https://www.java2s.com/style/demo/Safari.png" alt="Thank you wikimedia commons"> </div> </div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fe</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor nequ</p> <p>Lorem ipsum dolor <i>Lorem ipsum dolor sit amet, consec</i>Lorem ip</p> </body> </html>