<ul style="background: blue; list-style: none; width: 40px; height: 40px; color: white">
<li style="float: left; width: 20px; background: red">a</li>
<li style="float: left; width: 20px; background: green; height: 40px">b</li>
</ul>
This block of HTML/CSS appears to create a ul element that is wider than expected, measuring 80px instead of 40px. I am unsure of the reason behind this discrepancy. Any suggestions or insight would be greatly appreciated! Here is a link to the corresponding fiddle for reference:
Thank you in advance for your help!