HTML CSS examples for CSS Layout:Relative Position
get an absolutely-positioned div to extend outside its relatively-positioned parent with overflow: auto
<html> <head> </head> <!--from w w w . j a va 2s . co m--> <body> <div style="position: relative; height: 100px; width: 100px; background: red; overflow: auto;"> <div style="position: absolute; top: 20px; left: 20px; height: 10px; width: 10px;"> <div style="position: fixed; height: 100px; width: 100px; background: green;"></div> </div> </div> </body> </html>