<!DOCTYPE html> <html> <head> <style type="text/css"> .yellow { background-color: #ff0; } .grey { background-color: #eee; } .d1 { position: absolute; left: 32px; top: 32px; width: 100px; height: 100px; } .d2 { position: absolute; left: 132px; top: 32px; width: 100px; height: 100px; } </style> </head> <body> <div class="d1 grey"></div> <div class="d2 yellow"></div> </body> </html>