I'm trying to create a curve shape in CSS but I'm not able to do it. I've attached some examples of the kind of shapes I want to create.
Asked
Active
Viewed 1,259 times
1 Answers
0
With border-radius you can make your elements have some shape/curves. The higher the border-radius the more curvature you will have. You can also give multiple values for different sides.
#example1 {
border: 2px solid red;
border-radius: 25px;
}
#example2 {
border: 2px solid red;
border-radius: 50px 20px;
}
Read in more detail here: https://www.w3schools.com/cssref/css3_pr_border-radius.asp

Tygo
- 196
- 3
- 29