Width of Dropdown field

Length of string, or width of field?

You can't control the length of the string, as that's done in PHP and we're dnot about to add YAFO (Yet Another Option) to the filters to control that.

If no CSS is set to control it (which there isn't for filter dropdowns) the width of the field is set by HTML itself, to the longest string in the dropdown.

You should be able to control this yourself with a custom_css.php (see the wiki if you don't know how to add a custom CSS to a template), and add something like:


Code:
#listform_$c select.fabrik_filter {
	width: 150px;
}

If you only want to apply it to certain filters, you'll to to modify that to use a #id rather than tag.class selector. Inspect your page to work out what the ID of the specific filter is.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top