HTML CSS examples for CSS Property:overflow
get rid of the scrollbar without using overflow: hidden
<html lang="en"> <head> <style> * {<!--from ww w . j a v a 2s . co m--> margin:0; padding:0; } html, body { height:100%; width:100%; } header { height:71px; min-height:71px; position:relative; background:lightyellow; } #wrapper { height:calc(100% - 71px); background:lightgray; display:-webkit-flex; display:-ms-flexbox; display:flex; } #left { background:gold; } #right { width:31%; height:calc(100% - 71px); position:absolute; right:0; background:tomato; opacity:0.8; } </style> </head> <body translate="no"> <header></header> <div id="wrapper"> <div id="left"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisque lobortis neque vitae tempor iaculis. Aliquam erat volutpat. Mauris tincidunt eget lacus eget pulvinar. Suspendisse potenti. Maecenas blandit tempus met </div> <div id="right"> Lorem ipsum dol </div> </div> </body> </html>