This is a purely HTML based question.
When an image is placed as a background either on a table or a page's background it is automatically tiled.
Does anybody know how to stretch the image to fill the space instead of having it tiled?
Thanks.
Printable View
This is a purely HTML based question.
When an image is placed as a background either on a table or a page's background it is automatically tiled.
Does anybody know how to stretch the image to fill the space instead of having it tiled?
Thanks.
http://www.w3schools.com/css/pr_background.asp
It looks like you can prevent it from tiling, but I don't see if you can stretch it.
Hello, Red. Yes you can prevent it from tiling. If you are using the picture as background use <BODY background="yourPicture" bgproperties="fixed">
I dont know it it will work on a table background but try it.
Now beware.... I had it working fine on a webpage until I opened it in a computer that had 1024x768 resolution. You may need to make two versions of your page, one for 800x600 resolution and one for 1024x768
Good luck!
watch out if this thing has to work on Netscape as well, because apparently you can't put a picture in the back of a table, or maybe you can but have to change the syntax.
or maybe I wasn't quite right, this is what Homesite says;
BACKGROUND="URL of image"
Internet Explorer and Netscape support the placing of images in the <TABLE> element. (Also in the <TD> and <TH> elements) If used in the <TABLE> element, the image in question will be tiled behind all of the table cells. Any of the supported graphic file formats can be used as a graphic behind a table.
but I'm quite sure that doens't work in all versions of Netscape
Hmm, yes but remember that hwat he is trying to do is prevent the image from tiling when used as a background. that is where bgproperties="fixed" comes in handy.