Click here to Skip to main content
15,922,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
example code :

this is code set gradient top.how change gradeint to top-left?

body
{
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=white 100%, endColorstr=black 0%, GradientType=1 );!important

-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=white 100%, endColorstr=black 0%, GradientType=1);!important
...
}
Posted

1 solution

Example

CSS
A linear gradient from top to bottom:
#grad
{
background: -webkit-linear-gradient(red, blue); /* For Safari */
background: -o-linear-gradient(red, blue); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(red, blue); /* For Firefox 3.6 to 15 */
background: linear-gradient(red, blue); /* Standard syntax */
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900