<!DOCTYPE HTML> <html> <head><style> span { display:inline-block; width:20px; } </style></head> <body> <div><span></span>Test</div> <div style="float:left; width:100px; height:200px; background:yellow;"></div> <div style="clear:both"><span></span>Test</div> </body> </html>