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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -