I'm an absolute beginner so this might be something very easy, but I obviously couldn't figure it out.

So I have my drop-down listbox working. Is there any way to set the width? Right now it's taking up the entire width of the page, even though the content is maybe 10-20 characters at most. In other forms I've made this could be set and I'd just use that code but I like the fact that this module puts the submitted entries into a database and you can download them all as a csv (we will be sending mail to each user that submits the form).

I don't know PHP, by the way. I've modified a few things to my liking but I can't write it or anything. I'm a little better with CSS, but not much. Thanks!

Comments

quicksketch’s picture

Select elements don't have a "width" attribute that I'm aware of. Textareas and textfields have width parameters because the HTML element supports them. I think you'll need to adjust the width of your select list through your theme's CSS files.

butler360’s picture

Status: Active » Closed (fixed)

OK, thanks for the quick reply!

sushant1431’s picture

Very old question, but still replying that might help someone else.
You can increase the size of select option by either using css, jquery or by updating the webform code.
go to file webform/component/select.inc file and then goto line 346, there change it from 4 to your desirable size.
Here in this scenario i directly upldate the but it is recommend that first you override that code and edit it.