Variable size textfields and select dropdowns

I was on here a couple of weeks ago and had a brief conversation with someone about making textfields that are a specific size. I dont know if this has been covered already, but if not, here is my solution.

form_adv.css


.form_input_file,
.form_input_select,
.form_input_select_multiple,
.form_input_select_box,
.form_input_slider,
.input_wrapper_select_box .form_input_text
{
    width: 95%;
}
.form_input_text,
.form_input_email,
.form_input_url,
.form_input_date,
.form_input_datetime,
.form_input_password,
.form_input_number,
.form_input_slider,
.form_input_range,
.form_input_doublerange
{
    width: auto;
}
.input_wrapper_text,
.input_wrapper_email,
.input_wrapper_url,
.input_wrapper_date,
.input_wrapper_datetime,
.input_wrapper_password,
.input_wrapper_number,
.input_wrapper_textarea
{
    width: auto;
}

in form:

        'AgeStarted' => array(
            'type' => 'text',
            'attrs' => array (
            'size' => 3,
            'maxlength' => 3,
            ),
            'name' => 'AgeStarted',
            'caption' => _t("_AgeStarted"),
                      'db' => array (
                        'pass' => 'Xss', 
                    ),
                ),

and the end result is in the pic below. Hope this helps someone out.

smallfields.png · 86K · 317 views
caredesign.net
Quote · 8 Apr 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.