Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Size (width) of a 'select' box?
Old 11-03-2006, 04:46 PM Size (width) of a 'select' box?
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
I'm wondering how you can change the size (width) of a select box. The reason being, I have this:
HTML Code:
	<td align="center"/><select name="what" ><option selected="selected">Please Select</option><option>test</option><option>Test2</option></select></td>
.. it doesn't go wide enough for the 'Please Select' to fit in.

Help?
feraira is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2006, 05:02 PM Re: Size (width) of a 'select' box?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
You COULD put in <select style="width: (width)px;">, but that would only widen it so far and as your text gets resized, your thing still won't fit.

Also, you don't need /> at the end of a <td> tag. The closing tag, </td>, is at the end. Maybe that's what's doing it.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-07-2006, 05:35 PM Re: Size (width) of a 'select' box?
frofi's Avatar
Extreme Talker

Posts: 236
Location: London
Trades: 0
Quote:
Originally Posted by feraira View Post
I'm wondering how you can change the size (width) of a select box. The reason being, I have this:
HTML Code:
    <td align="center"/><select name="what" ><option selected="selected">Please Select</option><option>test</option><option>Test2</option></select></td>
.. it doesn't go wide enough for the 'Please Select' to fit in.

Help?
I wouldn't bother. Unless you do a JS selection, you'll get different width with every browser. Better adjust your design to it in it's default size.
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile
 
Old 11-08-2006, 01:23 AM Re: Size (width) of a 'select' box?
Average Talker

Posts: 25
Location: Indonesia
Trades: 0
Quote:
Originally Posted by feraira View Post
I'm wondering how you can change the size (width) of a select box.
.. it doesn't go wide enough for the 'Please Select' to fit in.
AFAIK by default the size of <SELECT> will expand as long as your longest text. In your case the problem might be in your column table width <TD>. Check your first row's column and table width.
__________________

Please login or register to view this content. Registration is FREE
.
dannybedor is offline
Reply With Quote
View Public Profile Visit dannybedor's homepage!
 
Reply     « Reply to Size (width) of a 'select' box?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64511 seconds with 12 queries