<style type="text/css"> .box { width: 200px; height: 200px;} #brown { background-color: brown; margin-bottom: 100px} #green { background-color: green; margin-top: 100px} </style> <div id="brown" class="box"> </div><div id="green" class="box"> </div>