<!DOCTYPE html> <html> <body> <div style="display: table; width: 500px"> <div style="display: table-cell"> <div style="float: right; width: 100px">one</div> <div style="float:left; width: 100px">two</div> </div> </div> </body> </html>