Rails with Simple Form - Styling

Mel

I have two current problems.

I have a _form in my app which has 5 checkbox criteria and then two yes/no questions.

My first problem is that I want to indent the check box so that it is neatly aligned with the other content in the form (rather than to the left of the labels on the other questions. Does anyone know how to do this?

My next problem is that I can't make my simple form pick up my css styling when incorporated like this?

 <%= f.label  :ethics,  'Does this project require ethics approval?', {:class=> "sub-question"}  %> 

When I inspect the element in google, the font, colour and size are all struck out. Does anyone know how to apply this CSS?

Thank you

user3252359

Try this

<%= f.label "Does this project require ethics approval?", :class => 'sub-question'%>

You are trying both :ethics and 'Does this project require ethics approval?' for label field name that is why the css is not loading

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related