0

How to use linear gradient?

general syntax and all details

25th Aug 2017, 2:54 PM
Nirmal Chandra Panda
Nirmal Chandra Panda - avatar
6 Answers
+ 10
try this website http://www.cssportal.com/css-gradient-generator/ simply paste the output code to the CSS body body{ css code here }
25th Aug 2017, 3:15 PM
Burey
Burey - avatar
+ 10
this is just an example from the site i posted here https://code.sololearn.com/W0ktkh0N6YhD/?ref=app body{ /* IE10+ */ background-image: -ms-linear-gradient(left, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%); /* Mozilla Firefox */ background-image: -moz-linear-gradient(left, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%); /* Opera */ background-image: -o-linear-gradient(left, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%); /* Webkit (Safari/Chrome 10) */ background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #008080), color-stop(25, #FFFFFF), color-stop(50, #05C1FF), color-stop(75, #FFFFFF), color-stop(100, #005757)); /* Webkit (Chrome 11+) */ background-image: -webkit-linear-gradient(left, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%); /* W3C Markup */ background-image: linear-gradient(to right, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%); }
25th Aug 2017, 3:21 PM
Burey
Burey - avatar
+ 9
as external CSS file?
25th Aug 2017, 3:19 PM
Burey
Burey - avatar
25th Aug 2017, 3:22 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
I want to use it in my own CSS document and I don't know how to use it
25th Aug 2017, 3:17 PM
Nirmal Chandra Panda
Nirmal Chandra Panda - avatar
+ 1
syntax
25th Aug 2017, 3:19 PM
Nirmal Chandra Panda
Nirmal Chandra Panda - avatar