Small Text Boxes?

A

Akhenaten

I'm working with limited space in a particular table cell, what's the
best way to create an input text box that is a bit smaller than the
standard <input type=text> ?

TIA.
../JLK
 
S

scripts.contact

I'm working with limited space in a particular table cell, what's the
best way to create an input text box that is a bit smaller than the
standard <input type=text> ?

<input type="text" size=width_in_characters >
e.g.-
<input type="text" size=10 >

OR

<input type="text" style="width:Width" >
e.g.-
<input type="text" style="width:10em">
 
J

Jonathan N. Little

Akhenaten said:
I'm working with limited space in a particular table cell, what's the
best way to create an input text box that is a bit smaller than the
standard <input type=text> ?

..itzybitzy { font-size: .5em; }


<input type="text" class="itzybitzy" value="Insanely small!">
 
J

Jukka K. Korpela

Scripsit Akhenaten:
I'm working with limited space in a particular table cell,

Then fix the thing that created this problem...
what's the
best way to create an input text box that is a bit smaller than the
standard <input type=text> ?

.... instead of creating new problems.

The default font size in input boxes is already typically 90% of the basic
font size*), so making it even smaller is a bad move. If you want user
input, why would you make it hard to him to see what he is writing?

*) So the CSS code
input { font-size: 100%; }
is worth considering.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top