Hi guys, I'm using Bootstrap 3 with Rails 4 and having a bit of trouble aligning my horizontal radio-buttons. In my HAML I have this line .row .col-md-12 =f.association :search_engine, as: :radio_buttons, item_wrapper_class: 'radio-inline', label: false but when I load the page, I get as attached: <https://lh5.googleusercontent.com/-xThqNNJHh0E/UxH... How can I fix this?
on 2014-03-01 15:15
on 2014-03-01 15:58
On Mar 1, 2014, at 9:13 AM, bertly_the_coder wrote: > I think you need form-inline on the parent of the radio buttons. Something like this (in HTML, can't read HAML) <div class="form-inline"> <label class="radio-inline"> <input type="radio"> </label> <label class="radio-inline"> <input type="radio"> </label> <label class="radio-inline"> <input type="radio"> </label> </div> Walter
on 2014-03-02 02:06
Beautiful! That worked....thx! On Sat, Mar 1, 2014 at 5:56 PM, Walter Lee Davis <email@example.com> wrote: > > =f.association :search_engine, as: :radio_buttons, > <label class="radio-inline"> > Walter > > To unsubscribe from this group and stop receiving emails from it, send > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk... > . > To unsubscribe from this group and all its topics, send an email to > firstname.lastname@example.org. > To post to this group, send email to email@example.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk... > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Clarity is self-created. The universe is waiting on you, not the other way around - Me. "Life isn't about finding yourself. Life is about creating yourself." - G. Bernard Shaw "Life is what happens while you are busy making plans" - John Lennon NAMASTE!!!!! Yeah I said it!!