replace current html image with css -


i having issues trying replace image css, have no access html.

http://jsfiddle.net/es4mh/

<img    width="64"    height="64"    border="0"    style="width: 64px; height: 64px;"    src="http://www.nitrografixx.com/2013/lock-icon.gif"> </img> 

i tried this, , while adds image background current image, doesn't replace it.

img[src='http://www.nitrografixx.com/2013/lock-icon.gif'] {   background: url(http://www.nitrografixx.com/2013/lock_bg.jpg) center !important;   } 

try this

<style> .classname{     content:url("http://www.nitrografixx.com/2013/lock_bg.jpg"); } </style> <img class="classname"/> 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -