HTML CSS examples for CSS Property:overflow
Manipulate overflow effects for the block element
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outer {<!--from ww w. j av a2s. co m--> background:red; height:100px; } .box1 { background:green; height:21px; } .box2 { background:blue; height:31px; } .chat { background:orange; height:100%; overflow:auto; } </style> </head> <body> <div class="outer"> <div class="box1"></div> <div class="box2"></div> <div class="chat"> Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br>Lorem ipsu <br> </div> </div> </body> </html>