Discussion Locked

Web Development

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am learing Web Development, so i have a question that is i want to insert a picture in a page as background, but if the size of the picture is short it appeares as tile shape,(repeated in full page) but i want to insert a picture as one image regardless of the size. i am using Frontpage2000 and Dreamwever. any tips.........
Thanx for ur help.

1 reply

by raffi_

There are a couple of ways to overcome this problem. The one I have used most often is to take the image and surround it with enough whitespace so that it never tiles. Not very speedy but perhaps the easiest to implement. Although it only has to load once it really pays to make sure that the image is as optimized (read "small") as is possible.

You did not mention if you want to maintain compatibility with older browsers and/or stick with plain HTML so here are a couple of other possibilities:

1. Use layers
2. There is a Javascript out there that will allow you to "float" the image in the background. I just can't find the script at the moment but write if this is a solution you are interested in.

SF

This discussion is closed to new replies.