Simple HTML question

IamDavid

Diamond Member
Sep 13, 2000
5,888
10
81
How do you make a image stretch to the size of your background like on windows desktop? Instead of it tiling I want the picture to take up the whole background.
 

Dan

Diamond Member
Oct 9, 1999
5,080
0
0
With Win9X, WinME & Win2K:

--> Right-click on your desktop and select properties.
--> From display properties, select the tab for background.
--> Select an image from the list on the left side of the box or
--> Click browse to select an image from another directory on your drive.
--> Chose stretch from the options (center, tile, stretch)

Note: If the image I want to use for a background is a jpg I convert it to a bmp so that I don't have to enable active desktop.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
i believe you are talking about on a web page and not on a desktop? well you cant just do it that simply. everyone uses a different resolution. youd have to have a script tell you how big the persons window is first before you can set the dimensions. if you want you could set the dimensions really huge and it would work for anyone but i dont think thats what youre looking for.
 

Moonbender

Golden Member
Oct 19, 2000
1,046
0
0
Did a quick test with Frontpage 2000 and this seems to work fine:

<img src=&quot;example.jpg&quot; width=&quot;100%&quot; height=&quot;100%&quot;>

This stretches the picture to the size of the window.
 

Jator

Golden Member
Jun 14, 2000
1,445
7
81
Can someone post a link to a page that has this feature. I just tried it on one of my pages and it just tiled the image, it didn't stretch it.

Thanks,

Jay
 

DAM

Diamond Member
Jan 10, 2000
6,102
1
76
i think this only works on IE, not netscape. i think, i read about this a while back and never really used it.




dam()
 

Jator

Golden Member
Jun 14, 2000
1,445
7
81
I tried it on IE, no go. Here's a link to a page I tried it on, Example. Anyone actually get this to work???

Jay
 

DAM

Diamond Member
Jan 10, 2000
6,102
1
76
Add that STYLE tag to your body tag and the background image will not
repeat.

<body STYLE=&quot;background-image: url('images/background.jpg');
background-repeat: no-repeat&quot;>



It doesn't work in netscape ....( it's css ...)



dam()
 

Kappo

Platinum Member
Aug 18, 2000
2,381
0
0
dam has is PERFECT...but that one still works for me in NetSCRAPE as well...
 

Moonbender

Golden Member
Oct 19, 2000
1,046
0
0
It won't repeat, but it won't stretch either - I don't think that's possible, with or without CSS.
 

IamDavid

Diamond Member
Sep 13, 2000
5,888
10
81
Why couldn't it be possible? Couldn't it work just like the windows background? There has to be a way...
 

rootaxs

Platinum Member
Oct 22, 2000
2,487
0
71
There is a way, but it's not nice by any chance. Create a significantly larger image (e.g. 800x600) and use it as a page background. To those on that resolution it will look like one gigantic image, however to those on higher resolutions it will be tiled. You can also prevent this from happening by using javascript during the loading process to serve up the proper page/image depending on the user's resolution.

But IMHO, background images are not good for pages that have a moderate amount of text in it... it's just too &quot;busy&quot;.
 

MetalCat

Member
Dec 27, 2000
70
0
0
Use JavaScript find the size of the window, or force it to 800*600 then load a pre defined image.

And make it a PNG of low quality, for all the modem users
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |