On Nov 1, 2011, at 11:02 AM, Stevio wrote:
> The values listed in the select list will be drawn from a database and 
> therefore the width of the select field is determined by the text within that 
> field. The behaviour I want is that the form will have a set width that would 
> expand if the width of the select fields is wider than the default width of 
> the form.


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.

Here's an example:

http://sperling.com/examples/pcss/

This isn't a big problem.

Cheers,

tedd

_____________________
t...@sperling.com
http://sperling.com







*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to