How can I use two different font styles in a label?

  • Profile Image
    tahch
    Asked on May 29, 2013 at 11:33 AM

    For example, this checkbox field has a label beginning with the word, "Payments option," and I would like only those words, not the rest, to be bold:

  • Profile Image
    Morian
    Answered on May 29, 2013 at 11:46 AM

    Hello!

    For that, you can add the bold <b> and italic <i> tag and place those words for in between the tags for emphasis

    <b><i>Payment Options</b></i> (if applicable) - I wish to pay my... 

    Hope this helps!

  • Profile Image
    tahch
    Answered on May 29, 2013 at 11:56 AM

    Hi Morian,

    I tried that and it didn't change anything... perhaps it's due to this field being bold by default? In other words, you cannot begin bolding if it's already bold. Is there a form setting that would change the default font?

    Thank you

  • Profile Image
    Morian
    Answered on May 29, 2013 at 12:20 PM

    Labels are indeed bold by default that is why I also included the italic <i> in my suggestion since that is the only way for the words to stand out. 

    Anyway you can always edit the labels by injecting this custom CSS code

    .form-label-left {font-family:YourFontOFChoice !important;}

    However, it would still be bold by default regardless of style so it is best to simply use the <i> tag to emphasis words. Thanks! =)