Input Form Restrict to 3 Characters

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
rid243
Forum Newbie
Posts: 5
Joined: Thu Oct 08, 2009 11:27 pm

Input Form Restrict to 3 Characters

Post by rid243 »

Hi all,

I currently have a form that has the following:

Code: Select all

<input name='input' type='text' maxlength='3' value='000'>
For the purpose of better aesthetics, I'm wondering how I can make the actual box the size of 3 characters instead of what looks like 20 characters long.

Thanks!

Richard
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: Input Form Restrict to 3 Characters

Post by mikosiko »

Code: Select all

 
<input name='input' type='text' maxlength='3' [color=#FF0000]size="3"[/color] value='000'>
 
rid243
Forum Newbie
Posts: 5
Joined: Thu Oct 08, 2009 11:27 pm

Re: Input Form Restrict to 3 Characters

Post by rid243 »

haha cheers!!
Post Reply