 <p>If it's an icon, why not just use a <code>float</code>?</p> <pre><code>.my-icon { display: block; width: 10px; height: 10px; float: right; } </code></pre> <p>Don't forget to set <code>overflow: hidden;</code> on the container, of course.</p>