HTML CSS examples for CSS Layout:Absolute Position
Resize css property on absolutely positioned div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .leftdiv {<!-- ww w.j a v a 2s . c o m--> background:red; float:left; width:51%; height:301px; } .custombox { position:absolute; top:11px; right:51px; z-index:1000; background:yellow; height:100px; width:100px; resize:both; overflow:scroll; } .rightdiv { background:blue; float:right; width:51%; height:301px; } </style> </head> <body> <div> <div class="leftdiv"> <div class="custombox"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi </div>Lore </div> <div class="rightdiv"> Lorem </div> </div> </body> </html>