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


Groups > comp.lang.javascript > #40097 > unrolled thread

Re: Browser-dependent JavaScript problem

Started byJames Kirk <noneya.invalid@gmail.com>
First post2021-05-23 20:14 -0400
Last post2021-05-23 20:14 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#40097 — Re: Browser-dependent JavaScript problem

FromJames Kirk <noneya.invalid@gmail.com>
Date2021-05-23 20:14 -0400
SubjectRe: Browser-dependent JavaScript problem
Message-ID<67991144-e67639c9-1fad0c63.tiberius@james.kirk.invalid>
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š•’š•žš•–š•¤ š•‚š•šš•£š•œ

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web