I'm stylizing a webpage developed on Rails.
So, I have a form with the checkbox of password remember. The problem Is it is always on bold and I can't change it. I've changed successfully the font-style, to italic, the color, but I couldn't remove the bold that was set as default (I guess).
Below my code:
<% if devise_mapping.rememberable? -%> <div class="remember_forgot_top remember_me_position"><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> <% end -%>
Someone knows how to remove the bold and how to stylize the label?
PS: I'm using twitter bootstrap.
So, add a class "form-check-label" into your tag, it will be not bold.
To bold the text in HTML, use either the strong tag or the b (bold) tag. Browsers will bold the text inside both of these tags the same, but the strong tag indicates that the text is of particular importance or urgency. You can also bold text with the CSS font-weight property set to “bold.”
Use <span> when you want to change the style of elements without placing them in a new block-level element in the document.
You may put the class "font-weight-bold" for label on the left to be bold and the "font-weight-normal" for the value on the right to be regular (not bold).
I fixed this problem overriding the label
label { font-weight: normal !important; }
Thanks to @vucko who gave me help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With