PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

2 different font sizes in the same label

  1. robert0965
    Member

    How can I do this inside of a form field label:

    1. BOLD FONT SIZE 1: font size 2

    I want their to be different styles within the same label. How can I accomplish this?

    Posted 13 years ago on Saturday May 29, 2010 | Permalink
  2. You could do this with some jQuery added to your page template. It will replace the label HTML with a new string.

    <script type="text/javascript">
    jQuery.noConflict();
      jQuery(document).ready(function($) {
    
         $('#field_2_1 label').html('<span class="biglabel">this font is bold and big</span> and this is not');
    
      });
    </script>

    You just need to replace the "field_2_1" with the proper id from the containing list item.

    Once you've got the new span/class in there, you can style it any way you like.

    Posted 13 years ago on Saturday May 29, 2010 | Permalink