Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33523

Re: Different size text depending on size of screen

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From "Dave \"Crash\" Dummy" <invalid@invalid.invalid>
Newsgroups comp.lang.javascript
Subject Re: Different size text depending on size of screen
Date Mon, 12 Jun 2017 09:47:00 -0400
Organization A noiseless patient Spider
Lines 21
Message-ID <ohm5pp$ji5$1@dont-email.me> (permalink)
References <d3edf185-9f23-4d89-828b-ad990c276427@googlegroups.com> <oheo73$jt2$1@dont-email.me> <oheoss$mbt$1@dont-email.me> <m3lgox8r6a.fsf@sonera.fi>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 12 Jun 2017 13:43:21 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="5949661c370e1c6b498f6d8b5ea365cf"; logging-data="20037"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SZlpt01qpe8sgSWTQTLiNxAYjpSy0mxk="
User-Agent Thunderbird 2.0.0.24 (Windows/20100228)
In-Reply-To <m3lgox8r6a.fsf@sonera.fi>
Cancel-Lock sha1:nMQeBiycDNudAC7m5T0jVSCo130=
Xref csiph.com comp.lang.javascript:33523

Show key headers only | View raw


Jukka Lahtinen wrote:
> "Dave \"Crash\" Dummy" <invalid@invalid.invalid> writes:
>> Dave "Crash" Dummy wrote:
>>> bit-naughty@hotmail.com wrote:
>>>> Hi, not sure if this group or the CSS group is the right one, but:
>>>> If the browser window is Bigger, I'd like the same text my website
>>>> has, displayed - Bigger! ie. proportional to the size of the
> 
>> <script type="text/javascript">
>> fs=0.05; //desired proportional font size
>> document.body.style.fontSize=fs*screen.height;
>> </script>
> 
> Not good. The *screen* size is irrelevant, use the window size instead.

Perhaps, but the OP specifically asked for "proportional to the size of 
the screen."
-- 
Crash

I'm not archaic, I'm retro!

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Different size text depending on size of screen bit-naughty@hotmail.com - 2017-06-09 08:44 -0700
  Re: Different size text depending on size of screen "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-06-09 14:12 -0400
    Re: Different size text depending on size of screen "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-06-09 14:23 -0400
      Re: Different size text depending on size of screen Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2017-06-12 12:57 +0300
        Re: Different size text depending on size of screen "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-06-12 09:47 -0400
  Re: Different size text depending on size of screen Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-06-09 19:34 +0100
    Re: Different size text depending on size of screen "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2017-06-09 16:33 -0400

csiph-web