Friday, May 14, 2010
Adding gradients to divs
Safari and Firefox require different css to create gardients:
#
myDiv{
//Safari:
background-image: -webkit-gradient(linear,left top,left bottom, from(#666), to(#000));
//Mozilla:
background: -moz-linear-gradient(top, #666, #000);
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment