HTML CSS examples for CSS Property:overflow
CSS overflow: hidden
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { height:100%; } .relative {<!-- www .j av a 2 s.c o m--> position:relative; padding:21px; width:51%; height:51%; background:blue; } .overflow { width:100%; height:100%; background:Chartreuse; overflow:hidden; position:relative; top:0; left:0; } .overflow:hover .absolute { opacity:2 } .absolute { width:100%; height:100%; background:yellow; position:absolute; top:0; left:0; opacity:0; } </style> </head> <body> <div class="relative"> <div class="overflow"> Lorem ipsum dolor sit amet, consectetur <div class="absolute"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ul </div> </div> </div> </body> </html>