How can you create a radial gradient that starts from the center of an element?
- gradient-radial(center, circle, red, blue)
- radial(center, circle, red, blue)
- radial-gradient(center, circle, red, blue)
- radial-gradient(circle at center, red, blue)
The correct syntax for creating a radial gradient that starts from the center of an element is radial-gradient(circle at center, color1, color2). The 'at center' part specifies the starting point, and 'circle' defines the shape of the gradient.
Loading...
Related Quiz
- In a responsive design, the term ______ is used to describe a layout that adjusts and looks good on all screen sizes.
- Which CSS property is used to set the background color of an element?
- When using CSS to mask an element, the area defined by the mask image that is ________ will be visible.
- What CSS property is used to change the style of bullet points in an unordered list?
- What is the role of the grid-gap property in a grid layout?