Forum Moderators: not2easy
Here is the code (works perfectly in Firefox):
img.theimage {
width: 160px;
height: 150px;
background:url(blah.gif) no-repeat 0 100%;
padding:10px;
margin: 0px 7px 0px 0px;
float: left;
}
Also, I'm having to scale down the image, therefore have specified width and height on image. Padding pushes it out to display the bg image correctly in Firefox and the right margin is needed to create some space around the image. Ideas?
It displays as a background, and it displays wherever it's positioned, as it is.
On the other hand, if you set the width and the height of the image, and have the image display as it normally does (using
src) then it should scale - but not as a background image. That's all I've got, sorry :)