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.
Loading...
Related Quiz
- How does the inherit value in CSS function?
- When using CSS to mask an element, the area defined by the mask image that is ________ will be visible.
- You want to design a heartbeat animation where a heart icon grows and shrinks continuously. How would you ensure the animation runs smoothly in both directions?
- Which CSS unit is relative to the root element's font size?
- In Flexbox, which property is used to define how items are aligned along the main axis?