Which CSS property is used to clip an element to a basic shape like a circle or ellipse?

  • border-radius
  • clip-path
  • element-clip
  • shape-clip
The CSS property used to clip an element to a basic shape like a circle or ellipse is clip-path. This property allows you to define a clipping path that restricts the visible area of an element to the specified shape. It's commonly used for creating non-rectangular shapes. border-radius is used to round the corners of elements, not for clipping.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *