Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Background Auto Resize to window

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Background Auto Resize to window

Post by Darknstormy »

Hey all you HTML gurus

Can we have a background on our webpages that will resize its self to the window size?

so say I jump on my laptop 1920 * 1080 and the picture will fit

and if I jump on my dads desktop 1280 x 1024 can we make it auto resize..


cheers
ImageImage
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Background Auto Resize to window

Post by beteljuice »

Simple answer - No :lol:

... but you really shouldn't be thinking of using images that big anyway.

But then I remember (very) slow modems :roll:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: Background Auto Resize to window

Post by Darknstormy »

I thought so, but I thought I would ask :D

Thanks mate..
ImageImage
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Background Auto Resize to window

Post by beteljuice »

Hmmm ....... the beteljuice inadvertently lied !

According to CSS3 standards you can use the 'style'

background:url(img_flwr.gif);
background-size:100% 100%;

... and that fills the 'container' with the image (NOT IE8)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: Background Auto Resize to window

Post by Darknstormy »

IT WORKS!!!


Your a champion!!
ImageImage
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Background Auto Resize to window

Post by beteljuice »

Only thing is it will 'distort' the picture to fit the window size. I for one, rarely run anything fullscreen, and of course if you 'design' for a wide screen it will be squashed for an old 5/4 format and what would it look like vertically on a tablet ?

I think I'll mostly be leaving that one alone :?
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply