Input width

This is a discussion on "Input width" within the Web Page Design section. This forum, and the thread "Input width are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 31st, 2007, 15:17
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Input width

PHP: Select all

label,input {
    
displayblock;
    
floatleft;
    
margin-bottom6px;
}

label {
    
text-alignright;
    
width75px;
    
fontsize11px;
    
margin-top4px;
    
padding-right10px;
}

br {
    
clearleft;

How can i make the input box a width of around 350? I tried width and size, thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 31st, 2007, 15:26
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Input width

using size should work :S but other than that I can't help sorry!
anyone else?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 31st, 2007, 15:28
Up'n'Coming Member
Join Date: Jul 2007
Location: France
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Input width

Normally a 'label' would self-align itself to the left of its input box, and adjust its own width dependant on content, and therefore perhaps doesn't need displaying as a block.

As for the input box, you should use the 'size' attribute e.g. size="40". That will give you a box 40 characters wide.

If you're also talking about a 'textarea', then you can size that by using the columns attribute e.g. cols="100". That's also roughly about 100 characters wide. Sometimes it just needs a little experimentation.

Hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 31st, 2007, 16:03
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Input width

I must've been too tired last night then and put it into the code i want displayed in the form instead of the actual input box.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
input

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
div width drappendix Web Page Design 2 Aug 22nd, 2007 14:34
div width drappendix Web Page Design 4 Aug 21st, 2007 04:46
width working in IE but not FF Davka Web Page Design 10 May 29th, 2007 09:40
Help with Width in Firefox.... JohnMitch Web Page Design 2 May 25th, 2005 09:26
Max-Width in All Browsers purus Web Page Design 4 May 16th, 2005 22:12


All times are GMT. The time now is 20:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved