|
-
Jun 22nd, 2001, 03:28 AM
#1
Thread Starter
New Member
Sounds simple... and maybe it is...
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.
-
Jun 22nd, 2001, 06:57 AM
#2
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jun 22nd, 2001, 09:15 PM
#3
Hyperactive Member
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!
Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore
-
Jun 26th, 2001, 03:45 PM
#4
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.
-
Jun 26th, 2001, 03:48 PM
#5
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
-
Jun 27th, 2001, 10:29 PM
#6
Hyperactive Member
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.
Top Tip: You can make friends and impress the opposite sex at geeky cocktail parties by saying "DB" instead of database. - Karl Moore
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|