I have a form in which I ask the user to choose between a specific collection of options. My form in my code base is as follows:
= f.label :recognition, "How did you hear about us?", required: false, class: "font required-field"
= f.input :recognition, input_html: { class: "recognitionStyling" }, collection: %w{article blog_post linkedin magazine_ad online_search referral twitter other}, required: false
Now I'm sure it works, but I want to style it a bit and have problems with it.
Now I have the following:

However, I am trying to get something similar to this:

Is there any specific input that I would have to allow for this? I tried adding a class to my contribution called recognitionStylingthat looks like this, but I don’t know the CSS way to do this.
.recognitionStyling{
width: 100%;
}
source
share