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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:49:58+00:00 2026-05-25T20:49:58+00:00

I have a div under my body element. It has that background CSS: -moz-linear-gradient(center

  • 0

I have a div under my body element. It has that background CSS:

-moz-linear-gradient(center top , #000000 0%, #30FF40 400px) repeat scroll 0 0 transparent

Inside of my div there is a datatable (a jqGrid table). I think after my page loads that grid table gets a space on my page. So my gradient background ends up somewhere and bottom of my page has a whitespace(other pages doesn’t have datatables are OK).

How can I solve that?

EDIT:

My problem is like that:
enter image description here

PS:

I found which causes it. I have a div element that includes my datatable:

<div id="cont">
...
</div>

When I open my webpage it becomes like:

<div id="cont" style="height: 602px;">
...
</div>

I changed the #cont styles to height:auto etc. but something overrides it even I write an inline CSS definition. It has a CSS like:

#cont {
  min-height: 100%;
  margin: 0 auto;
  min-width: 960px;
  max-width: 80%;
}

Any ideas?

  • 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-25T20:49:59+00:00Added an answer on May 25, 2026 at 8:49 pm

    Updated my Answer as well 🙂 Some Jquery is applying height to your ID #cont

    <style type="text/css">
    html, body{ margin:0px; padding:0px; background: #fff; min-width:300px/*480px*/; height:100%;}
    .yourClass
    {
    margin:0; padding:0; display:block; overflow:hidden;
        background: #444444;    background-repeat:repeat;
        background: -moz-linear-gradient(center top, #8db849, #444444);
        width:100%; min-height:100%; 
    }
    #cont {
      height:320px;/*Assumed height by Jquery / whaterver, you can remove while real time*/
      margin: 0 auto;
      min-width: 960px;
      max-width: 80%;
      background:#0099CC;
    }
    </style>
    
    
    
    <div class="yourClass">
        <div id="cont">
        ...
        </div>
    </div>
    

    It works for me, cheers!

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

Sidebar

Related Questions

I have a div directly under the body. My HTML looks like this: <body>
I have a div and an iframe on the page the div has z-index:
I have a div tag styled through CSS. I set the padding to 10px
I have a div ( parent ) that contains another div ( child ).
I have the following dojo codes to create a surface graphics element under a
I have markup in my page that includes the tag: <body> <object codebase=blah codetype=text/blah>
i have div's wrapped under div's my html code is. <div id=content-row> <div id=left-box>
I have several <li> tags under one id, such as: <div id=myID> <li>A</li> <li>B</li>
I have div containing a list of flash objects. The list is long so
I have a div in which a page is loaded with the DojoX Layout

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.