css - A Few Questions About Label Tags -


  1. how can make text displayed label tag bold?

  2. i want 2 labels same tag, second directly below first. what's way this?

  3. 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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -