In this post I am going to show how to Convert image color to black and white using CSS3.grayscale filter is used to convert image color to black and white.
To display images using HTML use the following code
Please share your comments and feedback.Thanks.Please subscribe my updates via email.
CSS Code
#img {
-o-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
-o-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
HTML
<img src="yourimg.jpg" width="500" id="img"/>
very nice....
ReplyDeleteit is not working in firefox
ReplyDelete