1#parent { 2 position: relative; 3 width: 400px; 4 height: 400px; 5 background: red; 6 border: 0 solid black; 7} 8#child { 9 position: absolute; 10 height: 100px; 11 top: 100px; 12 background: blue; 13 border: 0 solid black; 14} 15.floatLeft { 16 width: 50px; 17 height: 10px; 18 background: green; 19 float: left; 20} 21