Jump to content

Gap below <ul> in IE


rollOrDie

Recommended Posts

I have a list contained by two div elements, aswell as a div after the list. In IE there appears to be a gap after the list which I cant get rid of!

 

If I change the margin, it does increase / decrease however there is always at least about 10px extra.

 

Here is my code:

 

.navOption {
    border:#000 solid 1px;
    list-style-type:none;
    margin-bottom:10px;
    float:right;
    width:100%;}
    
.navOption li {
    display:inline;}

.navOption a {
    padding:4px;
    margin-left:2px;
    border:#000 solid 1px;
    float:right;}
    
.box, .boxHide {
    border:#CCC solid 1px;
    background-image:url(../image/bgStripeFaint.gif);
    margin-bottom:1.5em;
    clear:both;
    padding:1em}

#content, #contentWide {
    padding:1px 15px;
    width:320px;
    background:url(../image/bgCropTop.gif) no-repeat;}

#contentBg {
    width:350px;
    background:url(../image/bgCropBtm.gif) no-repeat 0 100%;}

#contentBgWide {
    width:720px;
    background:url(../image/bgCropWideBtm.gif) no-repeat 0 100%;}
    
#contentWide {
    width:690px;
    background:url(../image/bgCropWideTop.gif) no-repeat;}

 

 

          <div id="contentBgWide">
          <div id="contentWide">
            <h1>Process Completed</h1>
                <ul class="navOption">
                  <li><a href="#">link</a></li>
                  <li><a href="#">link</a></li>
                  <li><a href="#">link</a></li>
                  <li><a href="#">link</a></li>
                </ul>
            <div class="box">
                  content of div
            </div>
            <br class="clear" /></div>
      </div>

 

Any ideas on how to fix it are much appreciated!

Link to comment
Share on other sites

The box div only has a bottom margin, its the padding that has 1em all round:

 

.box, .boxHide {
    border:#CCC solid 1px;
    background-image:url(../image/bgStripeFaint.gif);
    margin-bottom:1.5em;
    clear:both;
    padding:1em}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.