css scaling border radius

Solutions on MaxInterview for css scaling border radius by the best coders in the world

showing results for - "css scaling border radius"
Sergio
20 Jul 2017
1// to scale a border-radius based upon the element size it is nested in. (rounded corners)
2// simply change the vw number from .1 to 10 or whatever to change the amount of curve.
3#box1 {
4  border-radius: 2vw;
5}