Width of selectbox?

Sorry for this question, I am still quiet new to Rails and sometimes can
not find my answers in my RoR books or on the Internet…

I made a selectionbox with the following code :
<%= select(‘company’, ‘city’, @cities) %>
This actually works very fine, but I would like to have some control on
the width of the selection box, so that it is not dependent upon the
entries in @cities

Try this

<%= select(‘company’, ‘city’, @cities, {}, {:style => “width: 200px”})
%>

Thank you very much, so easy, I actually tried a couple of things that
came very close, but just missed it…

Thank you very much again !

Jl Smith wrote:

Try this

<%= select(‘company’, ‘city’, @cities, {}, {:style => “width: 200px”})
%>