#layer1 { height: 300; width: 1000; left: 50%; top: 200px; position: absolute; visibility: visible; } #layer2 { height: 135px; width: 135px; left: 50%; top: 170px; position: absolute; visibility: visible; } #layer2 { height: 300px; width: 1000px; left: 50%; margin-left:-500px; top: 170px; position: absolute; visibility: visible; }