HighDots Forums  

Getting 'input type=text size=' to fill the available space

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Getting 'input type=text size=' to fill the available space in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris John Jordan
 
Posts: n/a

Default Getting 'input type=text size=' to fill the available space - 09-20-2003 , 10:15 AM






How can one get a text control's size to fill the available space e.g. the
width of the cell? I find not

input type=text size=100%

.. Thanks.

--
Chris

Reply With Quote
  #2  
Old   
Sean Jorden
 
Posts: n/a

Default Re: Getting 'input type=text size=' to fill the available space - 09-20-2003 , 10:31 AM






Chris John Jordan <chrisjj (AT) despammed (DOT) com> wrote in
news:03oomv0scerslfg6t51imk15ogqvur8f4s (AT) 4ax (DOT) com:

Quote:
How can one get a text control's size to fill the available space e.g.
the width of the cell? I find not

input type=text size=100%

. Thanks.

<input type="text" style="width:100%" >

-- however --

IE has a bug whereby it will expand the width of the textbox to its content
regardless of the width of the container surrounding the textbox when it
first renders it. I do not know of any good workaround for this other than
scripting.


Reply With Quote
  #3  
Old   
Chris John Jordan
 
Posts: n/a

Default Re: Getting 'input type=text size=' to fill the available space - 09-20-2003 , 01:24 PM



Sean Jorden <s_j_o_r_d.e.n (AT) no (DOT) spam.n_o_r_a.d.a.com> wrote:
Quote:
input type="text" style="width:100%"
Excellent! Thanks, Sean.

Quote:
IE has a bug whereby it will expand the width of the textbox to its content
regardless of the width of the container surrounding the textbox when it
first renders it.
Interestingly I do not see that here on IE 5.5.

--
Chris


Reply With Quote
  #4  
Old   
Chris John Jordan
 
Posts: n/a

Default Re: Getting 'input type=text size=' to fill the available space - 09-20-2003 , 01:32 PM



Chris John Jordan <chrisjj (AT) despammed (DOT) com> wrote:
Quote:
Sean Jorden <s_j_o_r_d.e.n (AT) no (DOT) spam.n_o_r_a.d.a.com> wrote:

input type="text" style="width:100%"

Excellent! Thanks, Sean.
Note: Opera 7.11 can decide to make the width zero in certain
circumstances!

--
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.