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


Groups > comp.lang.javascript > #41384

Re: styling <input type=text> elements

Newsgroups comp.lang.javascript
Date 2023-07-31 09:57 -0700
References <112fa9f3-7d2d-4c3b-b417-655eb0776264n@googlegroups.com> <87fs57g8bc.fsf@bsb.me.uk> <983d2dd7-9c75-4b12-bc57-0a11b1cf1114n@googlegroups.com> <877cqgw07f.fsf@bsb.me.uk> <0383ffc5-6fa7-46bc-beb4-0f260d41ad57n@googlegroups.com>
Message-ID <0dfd4936-108b-4b2a-9f72-4253ffceefacn@googlegroups.com> (permalink)
Subject Re: styling <input type=text> elements
From luserdroog <luser.droog@gmail.com>

Show all headers | View raw


On Monday, July 31, 2023 at 11:41:58 AM UTC-5, luserdroog wrote:
> On Monday, July 31, 2023 at 10:49:18 AM UTC-5, Ben Bacarisse wrote: 
> > luserdroog <luser...@gmail.com> writes: 
> > 
> > > On Friday, July 28, 2023 at 2:11:45 PM UTC-5, Ben Bacarisse wrote: 
> > >> luserdroog <luser...@gmail.com> writes: 
> > >> 
> > >> > After much searching and struggling I've discovered that the 
> > >> > only way to adjust the size of an <input type=text> element is 
> > >> > with its size="number-of-chars" attribute. 
> > >> Can you say more? Are you limited to what browsers you must support. I 
> > >> thought you could style the width in most. 
> > > 
> > > Oops, other question. Nope, I can safely assume/require the latest versions 
> > > of chrome or firefox. In fact I'm relying on this for the next rewrite 
> > > that'll use the new compression/decompression stuff. 
> > So now I don't know what the problem is! 
> >
> All good now. style="width:inherit" did the trick. 
> It's beautiful. sniff.

Correction, it was 
        edit.style.width = td.offsetWidth + "px";
 that finally worked.

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


Thread

styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-07-28 06:31 -0700
  Re: styling <input type=text> elements Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-07-28 20:11 +0100
    Re: styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-07-31 06:53 -0700
      Re: styling <input type=text> elements "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2023-07-31 20:59 -0700
        Re: styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-08-02 07:33 -0700
    Re: styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-07-31 06:58 -0700
      Re: styling <input type=text> elements Ben Bacarisse <ben.usenet@bsb.me.uk> - 2023-07-31 16:49 +0100
        Re: styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-07-31 09:41 -0700
          Re: styling <input type=text> elements luserdroog <luser.droog@gmail.com> - 2023-07-31 09:57 -0700
  Re: styling <input type=text> elements JJ <jj4public@outlook.com> - 2023-07-29 17:05 +0700
    Re: styling <input type=text> elements The Natural Philosopher <tnp@invalid.invalid> - 2023-07-29 17:49 +0100
  Re: styling <input type=text> elements Dr.Kral@nyc.rr.com - 2023-07-29 08:57 -0400
    Re: styling <input type=text> elements The Natural Philosopher <tnp@invalid.invalid> - 2023-07-29 17:52 +0100
  Re: styling <input type=text> elements Arno Welzel <usenet@arnowelzel.de> - 2023-07-30 09:45 +0200

csiph-web