Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:59:07+00:00 2026-06-05T08:59:07+00:00

I have a similar problem to this one . I am using jQueryUI tabs

  • 0

I have a similar problem to this one. I am using jQueryUI tabs to control content on the page, and on some of the tabs I am using jqGrid to display information. The font settings from jqGrid are being overwritten by the larger fonts defined by the tabs. The solution in that example was to define the tab as being of class ui-jqgrid. But they didn’t have anything except the grids under their tabs, so that solution works. How do I override the font settings for just the grid and allow jqGrid to use its own font settings, but retain the settings for everything else under the tab?

You can see here where it is overwriting my jqGrid font size. I tried using a percentage as well, but it just ignored that too.

CSS Calues

UPDATED – CSS Computed Style:
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:59:08+00:00Added an answer on June 5, 2026 at 8:59 am

    There are many ways to solve the problem. How you can confirm the way described here works, but it makes other texts to have 11px font which you don’t want.

    The problem with the font is the CSS setting (see here)

    .ui-widget .ui-widget { font-size: 1em; }
    

    Because both Tab and jqGrid have the class "ui-widget" the setting overwrite the font setting from the jqGrid.css (see here):

    .ui-jqgrid {position: relative; font-size:11px;}
    

    As the result you have the picture like on the demo:

    enter image description here

    jQuery UI uses em style. So you can for example include in the CSS of your page the following

    html, body { font-size: 75% }
    

    (see here). In the case you will have the following results (see the demo):

    enter image description here

    By the way the documentation of jqGrid suggest indirectly (see example of HTML page here). I understand that it could be situations where you want don’t change the size of other fonts on the page.

    In the case you can use for example

    .ui-jqgrid { font-size: 11px !important; }
    

    or alternatively the following

    .ui-jqgrid .ui-jqgrid-view { font-size: 11px; }
    .ui-jqgrid .ui-jqgrid-pager { font-size: 11px; }
    .ui-jqgrid .loading { font-size: 11px; }
    

    The results of the approach you can see on the next demo:

    enter image description here

    If I understand you correct it’s the results which you want to have.

    UPDATED: If you use Developer Tools of Chrome you can see the same information as in IE Developer Tools to locate the CSS style which overwrite font-size of jqGrid. For example in my first demo you will see

    enter image description here

    So if in your application my above suggestions not work you should examine the effective CSS styles aplied to any grid cell and find which CSS setting overwrite CSS of jqGrid.

    UPDATED 2: From the link which you send me per email I could see that the problem exist because you forgot to include any <!DOCTYPE html ...> declaration before <html>. So the web browser interpret your page as very old style HTML written in the time before even HTML 3.2 was published (before 1997). It’s so named Quirks mode.

    To solve the problem you should include before <html> the line like

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    

    or just

    <!DOCTYPE html>
    

    (HTML5 standard). Moreover I strictly recommend you to validate your HTML pages in some HTML valirador like http://validator.w3.org/. You current code is a mix between HTML and XHTML which is not good.

    UPDATED 2: I posted additionally the feature request where I suggest to stop creating of jqGrid in case of document.documentMode <= 5, so in case of usage Quirks mode (no <!DOCTYPE html ...>).

    UPDATED 3: Based on the question/answer I posted two suggestions to trirand: this and this. Both suggesting was accepted and are the parts of jqGrid now (see here and here). So the user of the next version should don’t have the described problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a similar problem to this post . I need to display up
I have a similar problem to the one enumerated in this question , except
I have a problem very similar to this one : CATransaction Not Animating I'm
I notice this thread: Fastish Python/Jython IPC , and I have a similar problem,
I have a cross-tab report which similar to this Problem is when there are
Similar to this question: link However I have already mastered that. My problem is
I have similar problem to one discussed here , but with stronger practical usage.
Using the following steps: (I have checked this similar post , which does not
I want to achieve a syntax similar to this one using JS setters and
I have a similar problem as @Mike in this question . The question is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.