<!DOCTYPE html> <html> <head> <style type="text/css"> #float { margin-left: auto; height: 40px; width: 100px; background-color: green; margin-bottom: 10px; } #separator { height: 20px; background-color: green; } </style> </head> <body> <div id="float"></div> <div id="separator"></div> </body> </html>