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

How to stretch the background image to fill

P: n/a
I have a pretty simple background image. Just a gradient using two colors.

I like to uses a small image and have the browser stretch it.

Is that possible. I did find the "repeat" but can not find a "stretch"

Is there one?
Thanks
Nov 2 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 02 Nov 2008 16:05:45 +0100, AAaron123 <aa*******@roadrunner.com>
wrote:
Is that possible. I did find the "repeat" but can not find a "stretch"
CSS does not specify any measures to control the size/strething of
background images. However, you are able to stretch regular images (img
elements), and by playing with the display and z-index attributes you are
able to "fake" a stretched background image.

Example code: http://gist.github.com/21707

--
Joern Schou-Rode
http://malamute.dk/
Nov 2 '08 #2

P: n/a
That works
thanks

"Joern Schou-Rode" <js*@malamute.dkwrote in message
news:op.ujzzxsa431zpn8@marvin...
On Sun, 02 Nov 2008 16:05:45 +0100, AAaron123 <aa*******@roadrunner.com>
wrote:
>Is that possible. I did find the "repeat" but can not find a "stretch"

CSS does not specify any measures to control the size/strething of
background images. However, you are able to stretch regular images (img
elements), and by playing with the display and z-index attributes you are
able to "fake" a stretched background image.

Example code: http://gist.github.com/21707

--
Joern Schou-Rode
http://malamute.dk/

Nov 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.