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


Groups > comp.lang.javascript > #40097

Re: Browser-dependent JavaScript problem

From James Kirk <noneya.invalid@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Browser-dependent JavaScript problem
Date 2021-05-23 20:14 -0400
Organization Time Travel Tracing
Message-ID <67991144-e67639c9-1fad0c63.tiberius@james.kirk.invalid> (permalink)
References <c759d589-5290-4bfb-b3bd-588c6799fb11n@googlegroups.com> <S6ydnT4TC6L8UDf9nZ2dnUU7-L_NnZ2d@westnet.com.au>

Show all headers | View raw


In Message: <S6ydnT4TC6L8UDf9nZ2dnUU7-L_NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:

> On 24/05/2021 1:58 am, John Stockton wrote:

[snip]

>> El.style = "bottom: 0px; right: 0px; position: fixed; background:
>> silver; width: auto; text-align: center; border-radius: 1ex;
>> padding: 0.3ex 1.2ex; font-family: sans-serif;"

[snip]

> I don't think you can set an element's style the way you are doing
> it. Maybe try this

[snip]

>     El.style.bottom       = "0px";
>     El.style.right        = "0px";
>     El.style.position     = "fixed";
>     El.style.background   = "silver";
>     El.style.textAlign    = "center";
>     El.style.borderRadius = "1ex";
>     El.style.padding      = "0.3ex 1.2ex";
>     El.style.fontFamily   = "sans-serif";

[snip]

El.style.cssText = "…"

-- 
Jš•’š•žš•–š•¤ š•‚š•šš•£š•œ

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


Thread

Re: Browser-dependent JavaScript problem James Kirk <noneya.invalid@gmail.com> - 2021-05-23 20:14 -0400

csiph-web