< Cascading Style Sheets
Use the background image
property to create a linear or radial gradient.
Use the linear-gradient
keyword to create a linear gradient.
Use -moz-
, -o-
, -webkit-
, and -ms-
as a prefix to the linear-gradient
keyword for Mozilla, Opera, Webkit, and Microsoft browsers respectively.
#corpnav, #searchbar {
color: #999;
background-image: -o-linear-gradient(top,rgb(100,100,100),rgb(200,200,200)); /* for Opera */
background-image: -moz-linear-gradient(top,rgb(49,49,49),rgb(7,7,7)); /* for Mozilla */
background-image: -webkit-linear-gradient(top,rgb(100,100,100),rgb(200,200,200)); /* for Webkit */
}
References
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.