0

Creating a Circle

To create a circle, the border radius should be half of the height and the width. But if we have unequal height and width, how circle will be created? For example, div { width: 200px; height: 300px; border-radius: 250px; background-color: green; color: white; } So, at above case - should we consider border-radius: 250px? Again, does it implies that circle can only be created using border-radius only when height and width is equal?

4th Dec 2018, 10:39 AM
Md Zahir Raihan
Md Zahir Raihan - avatar
1 ответ
0
You should use the width and height with a same value and border-radius:100% or (height+width)/2 px! But width and height must be same!! https://code.sololearn.com/WlA7KYUtBvk6/?ref=app
4th Dec 2018, 10:45 AM
AL Araf
AL Araf - avatar