You are here: Re: background-image « HTML « IT news, forums, messages
Re: background-image

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация