Welcome visitor
* Login
* Register
It is currently September 16th, 2019, 12:18 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Resize input boxes
PostPosted: December 12th, 2009, 10:32 pm 

Posts: 15
Hi, I have a form with some inputs with a maxlength of 2 or 4, so the default box is too big for me, do you know how can I change that?


Top
 Profile  
 
  Re: Resize input boxes
PostPosted: December 13th, 2009, 1:40 am 
User avatar

Posts: 112
Use CSS, width and height attributes:
<style type="text/css">
   input{width: 8em; heigth: 14px} //you can use "em" "px" indistinctly,
   //the difference is just that "em" is a relative unit
</style>


Top
 Profile  
 
  Re: Resize input boxes
PostPosted: December 14th, 2009, 10:12 pm 

Posts: 15
And what about the text inside?


Top
 Profile  
 
  Re: Resize input boxes
PostPosted: December 14th, 2009, 10:20 pm 
User avatar

Posts: 71
input{font-size: .8em}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron