By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,962 Members | 1,432 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,962 IT Pros & Developers. It's quick & easy.

How to stretch a background image?

P: n/a
Hi all,

I posted an earlier question to the microsoft.public.inetserver.asp.general
newsgroup asking how to set the background of a client-side table cell to a
gradient, and I received this answer:
If you know what the start and end colors are in advance, we can
pre-design an image with the expected gradient color range, then load
and stretch the static image to the table cell.
How do I stretch the static image? The Style property builder for a table
cell lets me specify the background image location, tiling, scrolling, and
position. But I can't find any obvious way to tell it to stretch the image
to fill the cell.

TIA - Bob

Aug 25 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Have you heard of CSS? There's an x-repeat attribute that can be used

"Bob Altman" <rd*@nospam.nospamwrote in message
news:Oc****************@TK2MSFTNGP05.phx.gbl...
Hi all,

I posted an earlier question to the
microsoft.public.inetserver.asp.general newsgroup asking how to set the
background of a client-side table cell to a gradient, and I received this
answer:
>If you know what the start and end colors are in advance, we can
pre-design an image with the expected gradient color range, then load
and stretch the static image to the table cell.

How do I stretch the static image? The Style property builder for a table
cell lets me specify the background image location, tiling, scrolling, and
position. But I can't find any obvious way to tell it to stretch the
image to fill the cell.

TIA - Bob
Aug 25 '08 #2

P: n/a
"Bob Altman" <rd*@nospam.nospamwrote in message
news:Oc****************@TK2MSFTNGP05.phx.gbl...
>Hi all,

I posted an earlier question to the
microsoft.public.inetserver.asp.general newsgroup asking how to set the
background of a client-side table cell to a gradient, and I received this
answer:
>>If you know what the start and end colors are in advance, we can
pre-design an image with the expected gradient color range, then load
and stretch the static image to the table cell.

How do I stretch the static image? The Style property builder for a
table cell lets me specify the background image location, tiling,
scrolling, and position. But I can't find any obvious way to tell it to
stretch the image to fill the cell.

TIA - Bob

"HillBilly" <so******@somewhere.comwrote in message
news:um**************@TK2MSFTNGP06.phx.gbl...
Have you heard of CSS?
Heard of it? Yes. Have any experience applying it in the real world? No.
There's an x-repeat attribute that can be used
I did a quick Google search for "CSS x-repeat" and found a couple of
articles that explain that it allows the image to be repeated vertically or
horizontally. That sounds to me like the same effect as "tiling", which I
can do directly in the Style property builder, but that's not the effect I
want. I want the image to dynamically resize to fill its container.
Aug 25 '08 #3

P: n/a
Hello Bob,

You may want to have a lot at this article:

http://webdesign.about.com/od/css3/f/blfaqbgsize.htm

It demonstrates how to stretch a background image. See the section "Faking
a Stretched Background Image Over a Smaller Space". It also provides demos
at the link "see an example". There is no built-in css style to stretch an
image background.

If you have any other questions or concerns, please DON'T hesitate to tell
me.

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 26 '08 #4

P: n/a
Thanks Jialiang.
Aug 26 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.