For some reason, adding an anchor tag leaves the parent
. When adding a display: the lock no longer overflows. The same thing happens with fields instead of filling. Why is padding ignored when sizing?HTML:
<ul>
<li><a href="">Link</a></li>
</ul>
CSS
ul{list-style:none;text-align:right;}
ul a{padding:3px;}
source
share