evaleah Posted September 6, 2009 Posted September 6, 2009 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! Quote
nate Posted January 27, 2011 Posted January 27, 2011 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. <div style="background-image: url('physicianGraphic.jpg')"> <img src="physicianGraphic.jpg"/> </div> Quote Ignorance begins with I.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.