Forum: Ruby on Rails How to include html tag inside rails label tag

Posted by Manoj M. (manoj_m)
on 2012-10-13 07:59
Hello pls help me,
                    below is my code



<label
style="width:175px;text_align:left;float:left;font-weight:bold;font-size:13px;">Group
<font size="1" color="red">*</font></label>


How to write this html code inside label_tag of rails ????
am clear till <font size="1" color="red">*</font>...

label_tag
'Group',nil,:style=>'width:175px;text_align:left;float:left;font-weight:bold;font-size:13px;'

My problem is how to include  <font size="1" color="red">*</font> into
this label_tag

Thanks in advance,
Manoj
Posted by "Quang Dũng" <nxqd.inbox@gmail.com> (Guest)
on 2012-10-13 10:11
(Received via mailing list)
I think it's always better if you give it a class name then styling it 
in
CSS file. Never do inline styling :)
Posted by Norbert Melzer (Guest)
on 2012-10-13 11:06
(Received via mailing list)
I second that, depending on the HTML version you are using font and 
similar
are deprecated and shouldn't (mustn't?) be used any more.
Am 13.10.2012 10:11 schrieb "Quang Dũng" <nxqd.inbox@gmail.com>:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.