How To Create Gradient Color in CSS?

You may use sample CSS code below:

.gradient {
background: #48b6c7; /* Old browsers */
background: -moz-linear-gradient(top, #48b6c7 0%, #1ca1ac 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#48b6c7), color-stop(100%,#1ca1ac)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #48b6c7 0%,#1ca1ac 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #48b6c7 0%,#1ca1ac 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #48b6c7 0%,#1ca1ac 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#48b6c7', endColorstr='#1ca1ac',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #48b6c7 0%,#1ca1ac 100%);
}

Example:

Jhovenell Marasigan is a web designer and developer specializing in WordPress, Adobe Photoshop and Adobe Dreamweaver. He spends a lot of his time thinking about and studying the latest treands about the internet, information philosophy, web design and development.
Recent Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>