Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list menu.. 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
0
0
US
I know that the list menu is only as long in width as the longest text string inside the list..

However, I need the list menu to be longer than the longest string to have it fit in properly with the rest of the fields in a form i'm building..

Is it possible to set the size of a list menu regardless of the longest string size inside?

Thanks in advance..

Carl
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
if you are referring to a select box...

<select name=&quot;mystuff&quot; style=&quot;width:300px;&quot;>

This will make it 300px long (wide) no matter even if the text is longer or shorter.

this works in browsers that understand css... forget about pre NS6 though.

You can set all of your fields to be identical...
<style type=&quot;text/css&quot;>
.boxer {width:300px;}
</style>

<input type=&quot;text&quot; name=&quot;myname&quot; class=&quot;boxer&quot;>

<textarea name=&quot;mycomments&quot; rows=&quot;4&quot; cols=&quot;20&quot; class=&quot;boxer&quot;></textarea>

<select name=&quot;mystuff&quot; class=&quot;boxer&quot;>

<input type=&quot;submit&quot; value=&quot;Submit&quot; class=&quot;boxer&quot;>


You can also apply background-color and color and font-family, size etc... to make all the fields pretty :)
JimS.
aka
TenTonJim

Looking for work:)
 
Yes a select box indeed..

Thanks alot..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top