Dark Gradient Background Code Example


Example 1: linear gradient css background image


background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);

Example 2: 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 (;)

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy