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.
Add your answer
Loading...

Leave a comment

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