grammar background: linear-gradient(direction,color-stop1,color-stop2,...);
The first one background: linear-gradient(to left,#d3959b,#bfe6ba); to left sets the gradient from right The second background: linear-gradient(to right,#d3959b,#bfe6ba); The third background: linear-gradient(to top,#d3959b,#bfe6ba); The fourth background: linear-gradient(to bottom,#d3959b,#bfe6ba); The fifth background: linear-gradient(to top right,#d3959b,#bfe6ba); to right top The Sixth background: linear-gradient(45deg,#d3959b,#bfe6ba); There is a slight difference between " The seventh background: linear-gradient(45deg,#d3959b 20%,#bfe6ba); Specifies the starting color position in percentage. The default value is The eighth background: linear-gradient(to right,#feac5e,#c779d0,#4bc0c8); Ninth background: linear-gradient(45deg,#feac5e,#c779d0,#4bc0c8); The tenth background: linear-gradient(45deg,rgba(254,172,94,0.5),rgba(199,121,208,0.5),rgba(75,192,200,0.5)); This is the end of this article about CSS container background 10 color gradient Demo (linear-gradient()). For more related CSS container background color gradient content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: MySQL isolation level detailed explanation and examples
>>: Share 8 CSS tools to improve web design
When a website is maliciously requested, blacklis...
1. Mathematical Functions ABS(x) returns the abso...
The warehouse created using the official Docker R...
The effect to be achieved In many cases, we will ...
I encountered a very strange problem today. Look a...
Table of contents JavaScript events: Commonly use...
Effect If you use it, please optimize the code an...
This article shares a small example of adding and...
If you need to use an image to implement the use ...
In Linux, the commands cat, more, and less can al...
1. First go to the official website https://www.p...
This article example shares the specific code of ...
1. Composite primary key The so-called composite ...
When building a website, HTML language may seem un...
Table of contents 1. Overview 2. Attributes 1. Ma...