jQWidgets Forums

jQuery UI Widgets Forums Gauges and Maps Gauges Change label font-size in Linear Gauge?

This topic contains 4 replies, has 3 voices, and was last updated by  dconyers 8 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Change label font-size in Linear Gauge? #49899

    jeff.kehoe
    Participant

    I’m using the Linear Gauge but if users resize to a fairly small size the labels get cut off. Is there a way to change the font-size of the labels?

    Thanks in advance!

    Change label font-size in Linear Gauge? #49959

    Peter Stoev
    Keymaster

    Hi jeff.kehoe,

    The .jqx-gauge-label CSS Class determines the Font of the gauge’s labels.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Change label font-size in Linear Gauge? #50177

    jeff.kehoe
    Participant

    Thanks, that’s all I need!

    Change label font-size in Linear Gauge? #83722

    dconyers
    Participant

    Hello JQWidgets Team –

    Thanks for hosting such a valuable forum. I’m new to your product line and I’m very impressed with the support!

    In addition to being new to JQWidgets, I’m also new to JavaScript/CSS, so my apologies in advance if my question is a bit ignorant…

    I have successfully overridden the font size for the caption on a jqx-gauge in my main index.css as is shown below:

    .jqx-gauge-caption
    {
    font-size: 30px !important;
    }

    From everything I’ve read, this is effective but poor code. I’ve tried it without the “!important”, but the change doesn’t win according to the cascading rules… I’m happy to specify an id for my jqx-gauge if that will “increase my specificity”, but I’m at a bit of a loss as to how to add that to the CSS and thought I’d ask!

    Thanks in advance – doug.


    dconyers
    Participant

    Please ignore; I figured it out!

    Thanks, doug

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.