Thanks Todd, what I'm really looking for is a minimum width on the form,
that expands as need be.
However, just setting a minimum-width on a form does not set the form to
that width. The width of a form as a block level element defaults to 100%.
The solution that seems to work for the form is the following:
min-width: 35em;
display:inline-block;
I want a default width of 35em just for consistency and just how I want it
to look. I do not want it getting smaller than that.
Stephen
----- Original Message -----
From: "Tedd Sperling" <[email protected]>
Sent: Tuesday, November 01, 2011 3:23 PM
Why have a hard-coded width?
If you are pulling the select-field text from a database, then you are
probably using php to do it. As such, it is a simple matter to find the
maximum length of the all the strings pulled and then set a width of the
select fields to work. I suggest setting this value in a variable from
within css -- I know css doesn't have variables, but that doesn't stop PHP
from declaring one.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************