<body> <div style="height: 20px; background-color: lightblue;"> <div id="target" style="float: left; width: 100px; height: 100px; background-color: green;"></div> </div> </body>