amitabhaghosh197
7/12/2016 - 2:17 PM

Some Important CSS Rules

Some Important CSS Rules

Placeholder color

input::-webkit-input-placeholder {
    color: #9B9B9B;
}

input:-ms-input-placeholder {
    color: #9B9B9B;
}

input::-moz-placeholder {
    color: #9B9B9B;
}

Always write the selectors before otherwise will not work. e.g input or textarea

Some beautifully arranged Positioned CSS rules in Bootstrap

http://demo.themeum.com/#cuisine

Grayscale CSS for all browsers

img.grayscale {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -moz-filter:grayscale(100%);
  -webkit-filter:grayscale(100%);
  -o-filter:grayscale(100%);
  -ms-filter:grayscale(100%);
    }
    
    img.grayscale.disabled {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -moz-filter:grayscale(0%);
  -webkit-filter:grayscale(0%);
  -o-filter:grayscale(0%);
  -ms-filter:grayscale(0%);
}
    

Reff:

  1. https://gist.github.com/karlhorky/3478370
  2. http://labs.voronianski.com/css3-grayscale/ 3.http://stackoverflow.com/questions/14813142/internet-explorer-10-howto-apply-grayscale-filter