0 points

Radial Gradient in CSS


dashboard

Fri Jan 10 2020 19:00:00 GMT+0000 (UTC)

Posted by @solitaire_4_07 #css #design #gradient #webdev

.gradient {
  background-image:
    radial-gradient(
      yellow,
      #f06d06
    );
}
content_copy Copy

Line 4 defines the inner colour of the gradient in the center line 5 defines the outmost colour at the edges.

https://css-tricks.com/snippets/css/css-radial-gradient/