Wednesday, August 7, 2013

My Bookmarks - Part I: CSS

Following are references to some of the sites/ posts which I came across while developing websites.

**Credit to the respective post/ blog owners **

Cross-Browser CSS Gradient
This concise CSS class can make your DIV or any other HTML control appearing with gradient background without really needing any image.

background: #999; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */
background: -moz-linear-gradient(top,  #ccc,  #000); /* for firefox 3.6+ */
Complete reference to post:
A cool website to get color code to use them while setting gradients: