<!DOCTYPE html> <style> .container { vertical-align: top; } .emptyBox { display: inline-block; width: 50px; height: 50px; } </style> <p>Test passes if a text below is aligned.</p> <div class="container"> <div class="emptyBox"></div> <span>This text should</span> be on the same line. </div>