Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

linear gradient in CSS

The general syntax of linear-gradient is-
background: linear-gradient(gradient direction, color1 , color2 , color3, .....);

Forexample-
background: linear-gradient(46deg,green,blue,yellow,pink);

NOTE: (common mistake) we forget to write the semi-colon (;) 
 
PREVIOUS NEXT
Tagged: #linear #gradient #CSS
ADD COMMENT
Topic
Name
5+6 =