469,348 Members | 1,682 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

repeat instead of stretch

When you give an image a certain height or width that is different from its original, html stretches the image, is there a possibility how you can repeat that image in that area instead of stretching it?
Oct 29 '06 #1
3 2547
drhowarddrfine
7,435 Expert 4TB
Make it a background image, then repeat it:
background-image:url('yourimage.png');
background-repeat:repeat-x;

and/or y.
Oct 29 '06 #2
i can't make it a background image
Oct 30 '06 #3
skase98
25
Why are you unable to make it a background image?

If you need it a certain size to fill a space and you don't want it to be a background image, you'll need to rebuild the image to tile the biggest space you can imagine it will need, then position it so other div layers hide the bits that aren't necessary.

Which seems like a whole lot of gyration because a background-image is the way to go to save your hair!

Kathy
Oct 31 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

16 posts views Thread by Stephen Saunders | last post: by
1 post views Thread by Ufit | last post: by
3 posts views Thread by Sergei Shelukhin | last post: by
3 posts views Thread by Harris Kosmidhs | last post: by
4 posts views Thread by Bob Altman | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.