05/12
TOP - Intermediate HTML and CSS: 27%.
Intermediate CSS Concepts - More CSS Properties (2)
Read through border and border-radius on MDN.
Mostly revisit what I knew so it was not too hard.
Yeah, I thought so,... until I see:
{ border-radius: 10px / 20px }
Took me a while to figure out how the border-radius is calculated.
MDN did a poor job explaining this imo.
The first radius: before the "/", refer to the horizontal radius of the ellipse.
The second radius: after the "/", refer to the verticle radius of the ellipse.
Example: { border-radius: 10px / 20px } mean the border-radius is set by an ellipse with width radius = 10px and height radius = 20px
Top comments (0)