css - A Few Questions About Label Tags -
how can make text displayed label tag bold?
i want 2 labels same tag, second directly below first. what's way this?
how can choose size of text of label?
sorry if of these obvious, documentation wasn't helpful.
thanks!
you can make class sets font-weight
, font-size
in , use in f.label's class.
for example, in css, have:
.mylabel { font-weight: bold; font-size: 20px; }
and inside html.erb, you'd have css class made in it, so...
<%= f.label :first_name, class: 'mylabel' %>:
Comments
Post a Comment