Control (hide) contents of image using only CSS -
is there css hack/technique take <img> element (with no other markup) , hide pixel content of image while still displaying element background color , stroke?
for example, take <img src="foo.jpg"> on page , make 32x32 badge of solid color.
though interested in browser-specific hacks (does webkit have solid-fill effect?) or css3 awesomesauce (is there image-content-opacity:0.0?), need solution works on ie8+, ff4+ , thereabouts.
if interested in motivation question, see edit history of page. has been removed because distracting users helpfully trying find workarounds solve problem instead of answer question.
hide image , use background filled solid color.
example here http://jsfiddle.net/notme/zuvhn/6/
Comments
Post a Comment