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 6822939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:43:24+00:00 2026-05-26T21:43:24+00:00

I had a jqGrid displaying perfectly ok. Then I started to develop a basic

  • 0

I had a jqGrid displaying perfectly ok.

Then I started to develop a basic site layout structure and got into problem: jqGrid’s header got really huge! 🙂

Here’s the screenshot.

The structure of the page:

<div id="sidebar1" />
<div id="sidebar2" />
<div id="centralpart">
    <div id="jqgrid">....</div>
</div>

And css:

#sidebar1 {
  float: left;
  width: 150px;
  padding: 10px 10px;
}

#sidebar2 {
  float: right;
  width: 300px;
  padding: 10px 10px;
}

#centralpart {
  margin: 0 300px 0 150px;
  text-align: center;
}

I detected that things broke because of floats: once I remove them jqGrid’s header goes back to normal size (although other parts of layout get messed up ;))

Also I noticed that with floats header spans down exactly by amount of height of the right sidebar, so it looks like it tries to float it…

I also tried to clear floats by putting <br style=”clear:both” /> before jgGrid, but that shifted it to the bottom of the page beyond sidebars, that’s not what I want.

I’m only taking my first steps to css/html/jqgrid, so I can miss something really obvious 🙂

  • 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-26T21:43:24+00:00Added an answer on May 26, 2026 at 9:43 pm

    First of all it seems to me you have to fix margin value of #centralpart to the following

    #centralpart {
        margin: 0px 320px 0px 170px;
        text-align: center;
        background-color:red
    }
    

    To solve your main problem you should set height of the titelbar div div.ui-jqgrid-titlebar explicitly:

    div.ui-jqgrid-titlebar {
        height: 16px;
    }
    

    Like you can see on the demo the results will be much better after the changes. (I included background-color in every div to see more clear the size of every div.

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

Sidebar

Related Questions

I had started another post wanting to know how to use jqgrid when you
I am working on jqGrid.I had a problem in the navigator rowList. my data
Had a nice PHP/HTML/JS prototype working on my personal Linode, then tried to throw
Had a problem in a complex linq query so I simplified it in LINQPad:
I had a question before about implementing datepicker with jqgrid. I think that question
In the past when I've used jqgrid all i have done is had a
I am using jqgrid and I had to freeze couple of columns in the
Had I looked into the Java SE6 documentation sooner on Context and InitialContext, I
Had a basic question as to the server side behavior while using cookies /
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime

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.