471,066 Members | 1,159 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

How to stretch a background image?

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
4 5589
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
"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
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
Thanks Jialiang.
Aug 26 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Soobrassen Thoplan | last post: by
3 posts views Thread by Greg Heilers | last post: by
2 posts views Thread by AAaron123 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.