basic img backgroun-image issue

evaleah

Regular
Joined
May 14, 2003
Messages
56
I have a simple html img control I would like to add a background image to. I have the following but the background image does not show. The image being referenced is there. I can see it in the second image control. I just don't see it as a background. Any ideas?

<img id="htmlImg" style="background-image: url('physicianGraphic.jpg'); background-position:top center;" src="uploadedimages/Member_Photos/adkins.jpg" alt="Doc Photo Test" />

<img id="Img1" src="physicianGraphic.jpg" alt="Doc Photo Test" />

Thanks!
 
I am not sure if you can set a background image in an image control. You can try to wrap it with a div and then put your background image in the div.

Code:
<div style="background-image: url('physicianGraphic.jpg')">
<img src="physicianGraphic.jpg"/>
</div>
 
Back
Top