Border-radius 50% or 100%
I tried to change the value of the border-radius and after 50 it isn’t changing, why?
Answer 55a019779113cb4d91000161
Anything more than the radius defaults to the actual radius. By definition a radius is the same in all directions, defining a circle. In other words, half of the diameter. 50%. The browser understands this.
Some authors choose to write 100%, but their reasoning is unclear, at least to me. It just seems to make the browser do more work calculating what the true radius is (in order to prevent curves from overlapping). Even if we use px
units the diameter of the circle, the browser will calculate it down to half of that. For your own sanity, go with what seems most reasonable: 50%.
Answer 55bca6cd9376766f290005d8
I agree with Roy on this. 50% should be used to make a circle. More info on this(which comes down to what Roy said): http://jessica-eldredge.com/2014/09/07/border-radius-50-or-100-percent/
Popular free courses
- Free course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner Friendly4 Lessons - Free course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner Friendly11 Lessons - Free course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner Friendly6 Lessons