HTML CSS examples for CSS Layout:Position
Position as browser resizes
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #banner {<!-- ww w. java2s. c o m--> background-color:Chartreuse; height:251px; } #overlay { background-color:yellow; position:absolute; top:201px; left:61px; right:41px; } </style> </head> <body> <div id="banner"> Lorem ipsum dolor <div id="overlay"> Lorem ipsum dolor </div> </div> </body> </html>