Ed Mullen wrote:
la***********@zipmail.com wrote:
>Hello,
I have a cell that is 100 pixels wide and an image that is 200 pixels
wide. I want to put the right-most 100 pixels of that image as my
background image. How can I do taht? If I specify
background-image:url('images/myimg.gif');
by default, the image starts displaying from left to right, so I only
get the left-most 100 pixels, which I don't want.
Thanks for your help, - Dave
How about positioning? Ala:
<td style="background-image:url('images/myimg.gif');
background-position: -100px 0px; background-repeat: no-repeat;">blah
blah blah</td>
I think if you want the rightmost 100 pixels, it would be better to use
background-position: right top;
or to vertically center it,
background-position: right center;
That way, even if the image is not precisely 200 pixels wide, you'll
still get the rightmost 100 pixels.
Jeremy