Using CSS background image on HTML image element
Pascal Opitz replys the question "can you set an image background on an image element?" in simple fashion. All you have to do is make sure that the image is display: block and has a padding. He put up a simple demo that uses a div with an image, and he applies backgrounds to both:
div {<br /> background: url('blur.jpg') no-repeat top left;<br /> width: 232px;<br /> height: 200px; <br />}<br /> <br />img {<br /> display: block;<br /> background: url('parallax.gif') no-repeat bottom left;<br /> padding: 93px 100px 75px 100px;<br />}
Source:→ Ajaxina

Leave a comment »