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

  • SEARCH
  • Home
  • 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 6548047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:54:13+00:00 2026-05-25T11:54:13+00:00

I have a jqGrid which works fine when displayed on a page on its

  • 0

I have a jqGrid which works fine when displayed on a page on its own.

If I try to display the same grid inside jQueryUI tab, it still works fine – except that font size is wrong. What is happening is this:

When everything is working on a standalone page, the font size is picked up as follows:

Inherited from div#gbox_datatable.ui-jqgrid.ui-widget.ui-widget-content.ui-corner-all, in file ui.jqgrid.css line 2
.ui-jqgrid{
    font-size:11px;
}

When the grid is placed inside a jQueryUI tab, howerver, it is overridden by a higher priority CSS command as follows:

Inherited from div#gbox_datatable.ui-jqgrid.ui-widget.ui-widget-content.ui-corner-all, in file jquery-ui-1.8.9.custom.css line 60
.ui-widget .ui-widget{
    font-size:1em;
}

In other words, the fact that I have a ui-widget inside another ui-widget is overriding the desired font specifier.

How can I avoid this overriding?

I found same question at here without any answers.

Any help will be appreciated…

  • 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-05-25T11:54:14+00:00Added an answer on May 25, 2026 at 11:54 am

    ui.jqgrid.css has the following definition

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

    So if you add class “ui-jqgrid” to the div which holds the tabs the problem will be solved:

    <div id="tabs" class="ui-jqgrid">
        <ul>
            <li><a href="#results">Results</a></li>
            <li><a href="#log">Software</a></li>
        </ul>
        <div id="results" class="tabcontain"></div>
        <div id="log" class="tabcontain">
            <table id="grid"><tr><td></td></tr></table>
            <div id="pager"></div>
        </div>
    </div>
    

    In the example above div with two tabs will be used: one with some general information and another with the the id=”grid”.

    One more simple way will be just set

    html, body { font-size: 75%; }
    

    which set will reduce default font size of the page (1em) to the same which jqGrid uses (11px).

    See one more way in the resent question.

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

Sidebar

Related Questions

I have a jqgrid which works fine. However there is a constraint in my
I have a asp.net webforms page in which I'm using the jqGrid component. The
Its like I have multiselect option in Jqgrid in which i want to pass
Is there any way to disable jqgrid local cache??? I have a page which
Hi I have a grid which used to display call details. It is displaying
I have a jqGrid with which users will select records. A large number of
I have create the the jqgrid which loads the data from the server ,
in my jqgrid i have field in a table which represents the id and
I have a jqGrid loaded by AJAX inside a jQuery UI Dialog. Everything is
I have a jqGrid on a page and users can click a button to

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.