Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40269
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Downscale browser content. |
| Date | 2021-06-28 14:50 +0200 |
| Message-ID | <ijtut3Fs09nU1@mid.individual.net> (permalink) |
| References | (3 earlier) <ijr85hFbso4U8@mid.individual.net> <cd406f3f-5eb7-4258-82aa-ee827e4dabe2n@googlegroups.com> <08f42a2b-0d51-46b8-919f-40b1e3c67d88n@googlegroups.com> <ijs9ikFia54U1@mid.individual.net> <e78ed659-4c1c-456b-8b8e-3705764353e3n@googlegroups.com> |
Jonas Thörnvall:
> söndag 27 juni 2021 kl. 23:40:44 UTC+2 skrev Arno Welzel:
[...]
>> Just learn how to use your browser and the web developer tools of it and
>> manually add the following CSS rule after you loaded a website:
>>
>> html {
>> transform: scale(0.5);
>> }
>>
>> This will scale *everything* to 50% of the original size - yes, also
>> canvas elements and forms inside the document.
>
> Great! best effort of today.
> Thank you Arno, this will come in handy, i sized everything for 1920*1080, but there probably still people with laptops who want 1320*768.
> I already have the code for decide size, now i just must make the CSS value dynamic!
>
> Thanks Again Arno!
Another thin: keep in mind, that the viewport itself will not be scaled,
just the content inside. So you might need additional code to reduce the
size of the viewport as well or set a fixed scroll offset to position
the content correctly inside the browser window.
--
Arno Welzel
https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-26 14:38 -0700
Re: Downscale browser content. JJ <jj4public@gmail.com> - 2021-06-27 12:34 +0700
Re: Downscale browser content. Arno Welzel <usenet@arnowelzel.de> - 2021-06-27 10:41 +0200
Re: Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-27 02:17 -0700
Re: Downscale browser content. Arno Welzel <usenet@arnowelzel.de> - 2021-06-27 14:10 +0200
Re: Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-27 08:27 -0700
Re: Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-27 08:31 -0700
Re: Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-27 08:40 -0700
Re: Downscale browser content. Arno Welzel <usenet@arnowelzel.de> - 2021-06-27 23:40 +0200
Re: Downscale browser content. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2021-06-27 16:01 -0700
Re: Downscale browser content. The Natural Philosopher <tnp@invalid.invalid> - 2021-06-28 12:15 +0100
Re: Downscale browser content. Arno Welzel <usenet@arnowelzel.de> - 2021-06-28 14:50 +0200
csiph-web