 <p>Use a transparent <code>border</code> on all the other <code>&lt;li&gt;</code> to make it good.</p> <pre><code>ul.menu li { float: left; list-style-type: none; border: 2px solid transparent; } </code></pre> <p><strong>Fiddle: <a href="https://jsfiddle.net/8cu4bL3s/" rel="nofollow">https://jsfiddle.net/8cu4bL3s/</a></strong></p>