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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:07:19+00:00 2026-06-02T19:07:19+00:00

I am having trouble diagnosing what is causing a gap in a section of

  • 0

I am having trouble diagnosing what is causing a gap in a section of my page. I searched SO and Google, however I could not pinpoint any helpful articles. I have a container which contains a title, an unordered list and a div with information. The problem is a gap is occurring between the div and the ul. I would like the div to be directly under the ul with no spaces. An example can be seen here: http://jsfiddle.net/aAfU5/1/ (Remember IE7)

HTML

<div id="center-panel">
  <h1>Information</h1>
    <ul class="clearfix">
      <li class="bg1 border2">Regulation</li>
      <li class="bg1 border2">Compliance</li>
      <li class="bg1 border2">Resources</li>
    </ul>
    <div id="information-panel" class="border2">
      This is where the content goes
    </div>
  </div>

CSS:

    #center-panel {
        height: 300px;
        float: left;
        width: 78%;
        padding: 5px;
    }

    #center-panel ul {
        padding: 0px;
        margin: 0px;
    }

    #center-panel li {
        color: white;
        /*display:inline-block;*/
        /*display:inline;*/
        float: left;
        font-weight: bold;
        list-style-type: none;
        margin: 0px 2px;
        padding: 3px;
        width: 100px;
    }

    #information-panel {
        clear: both;
        margin: 0px 2px;
    }

    h1 {
        margin: 0 0 10px 0;
        padding: 0;
        font-size: 120%;
        color: #01305E;
    }

    .bg1 {
        background: #3C698E;
    }

    .border2 {
        border: 1px solid #01305E;
    }
  • 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-02T19:07:23+00:00Added an answer on June 2, 2026 at 7:07 pm

    It’s your H1 margin that “spills” under the ul.
    Replace it with a padding :

    h1 {
      margin: 0;
      padding: 0px 0px 10px 0px;
      font-size: 120%;
      color: #01305E;
    }
    

    You could also add zoom to trigger haslayout

    #center-panel ul {
      padding: 0px;
      margin: 0px;
      zoom:1;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble linking the Stomp.framework into an iPhone SDK application. http://code.google.com/p/stompframework/ I follow the
Having trouble using Powershell to manipulate IP Restrictions on IIsWebVirtualDir (Virtual Directories). However, i
Having trouble with a function hitting the page as soon as possible, so i
Having trouble with a query to return the newest order of any grouped set
Having trouble here and not quite sure how to do it. I've attempted jQuery
I am having trouble diagnosing the following issue. There are 2 objects, a ring
Having trouble finding the first character of Field42 inside xpath, see below. Any suggestions?
Having trouble diagnosing/fixing an issue on a website where the Wordpress sidebar won't appear
I'm using CanCan and I've run into an error I'm having trouble diagnosing. Some
Having trouble disabling the active state. Any thoughts? So when a user click on

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.