Border-radius: 500px;

Why would someone use border-radius: 500px; rather than border-radius: 50%?

Why would someone use px units; rather than em units? :rolleyes:

coothead

Can you please summarise why ems are better than px, and how percentages compare with them?

I was not suggesting that one was better than the other. :unhappy:

I was, in my own peculiar style, trying to point out that the
O.P.'s question was similar to this imponderable one…

“How long is a piece of string” :eek:

Just because you can ask a question, does not necessarily
mean that there is always a straightforward answer. :winky:

coothead

Using fixed units like px on a radius, rather than relative units like % is like applying a maximum size for the radius.
A 50% radius will _always be half the size of the element giving an elliptical/circular appearance no matter how big the element is.
With px units it will be elliptical when the element is twice that value in size or less. But when the element is bigger than twice the value, the radius will stop growing and remain at that px value.

4 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.