I have this markup:
<p style="background-color: #000">
<button>
<svg width="25px" height="25px" xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 43.42 43.42">
<path d="M21.71,43.42A21.71,21.71,0,1,1,43.42,21.71,21.73,21.73,0,0,1,21.71,43.42ZM21.71,2A19.71,19.71,0,1,0,41.42,21.71,19.73,19.73,0,0,0,21.71,2Z" style="fill: rgb(255, 255, 255);"></path>
</svg>
</button>
</p>
I want the button to be no larger than the 25x25 SVG it contains.
button {
background: transparent;
border-width: 0;
padding: 0;
}
The width of the button is correct, but the computed height is 28px, and I can't figure out where the 3 extra pixels are coming from.
` the 3 extra pixels go away.
– Andrew Morton Jul 06 '18 at 18:19