How do I increase the font size in collection_select dropdown box for a rails app开发者_JS百科?
I imagine this could be up with CSS.
The collection_select
method allows you to specify an html options, such as an html class name, e.g.:
collection_select(:user, :title, UserTitle.all, :id, :name, {:prompt=>true}, {:class=>'my-custom-class'})
Then, you can style it with CSS:
.my-custom-class { font-size: 110%; }
精彩评论