|
Posted by Neredbojias on 01/16/07 04:20
On Mon, 15 Jan 2007 16:05:49 GMT Marvin scribed:
>
> Neredbojias wrote:
>> To further the education of mankind, "marvin.avery@sdc-dsc.gc.ca"
>> <marvin.avery@sdc-dsc.gc.ca> vouchsafed:
>>
>> > Hi:
>> >
>> > I am defining a table cell as follows:
>> > <table>
>> > <tr>
>> > <td style="background-image:url(myimage)">
>> > </td
>> > </tr>
>> > </table>
>> >
>> > If the background image is too small, it repeats. Instead of
>> > repeating, I would like it to *stretch* to fill the cell. Is there
>> > any way of doing this? Similarily, if the cell is too small, is
>> > there anyway of *compressing* the image so I still see the whole
>> > thing?
>>
>> javascript
>>
>
> Can you be more specific?
Sure. You use javascript to get the size of the document or part
thereof which you want, then use it further to resize the image to those
dimensions. In your case, you would get the table cell size and make
the image "fit" to it.
--
Neredbojias
Navigation:
[Reply to this message]
|