I am facing a challenge with creating buttons that have perfectly rounded corners. The button is 50px high and the border radius is set to 25px, resulting in a perfect half-circle on each side of the button:
It's pretty straightforward to achieve this look using CSS when you already know the height of the button (button height ÷ 2 = border radius).
However, my question is: can we still maintain the perfectly-circular edges if the button's height changes dynamically (for example, when more text is added)?: