Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Footer issues

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28216
    CraigC
    Member

    Hi,

    I have a 2 – 5 px gap at the bottom of my footer, depending on the browser. This lets a background image show through, which I don’t want.

    I’m not sure if this is related to a negative margin I set on a "ul class=legal_notice" or if I messed something else up entirely.

    Would someone mind taking a look at http://dev.craigcurry.com?

    Some possibly relevant code:

    Code:
    #footer {
    background: #730707 url(../images/interface/2010_footer_bg.jpg) no-repeat;
    height: 215px;
    width: 960px;
    margin: 0 auto;
    color: #730707;
    font-size: 1.4em;
    }
    #footer ul {
    list-style: none;
    width: 960px;
    float: left;
    }
    #footer ul.footer_nav {
    float: left;
    width:480px;
    margin: 0;
    margin-top: -126px;
    margin-left: 260px;
    }
    #footer ul.footer_nav li, #footer ul.legal_notice li {
    float: left;
    }
    #footer ul.footer_nav li a:hover {
    background: url(../images/interface/footer_nav_bg.png) bottom center no-repeat;
    height: 50px;
    overflow: hidden;
    }
    #footer ul.footer_nav a {
    font-size: 1em;
    height: 50px;
    overflow: hidden;
    }
    #footer ul.footer_nav li a.active.home, #footer ul.footer_nav li a.active.about, #footer ul.footer_nav li a.active.recordings, #footer ul.footer_nav li a.active.blog, #footer ul.footer_nav li a.active.contact, #footer ul.footer_nav li a.active.piano, #footer ul.footer_nav li a.active.tutorials, #footer ul.footer_nav li a.active.choral, #footer ul.footer_nav li a.active.shop {
    color: #121b61;
    font-weight: bold;
    display: block;
    height: 50px;
    overflow: hidden;
    }
    #footer ul.legal_notice {
    float: left;
    width:300px;
    margin: -18px 0 0 395px;
    }
    #footer a {
    font-size: .8em;
    color: black;
    text-decoration: none;
    float: left;
    display:block;
    padding: 2px;
    }
    #71820
    TheDoc
    Member

    Remove the height from your quick links lists.

    #71810
    CraigC
    Member

    Thanks. That did the trick for everything except IE7. There I have a 2px gap at the top of the footer and about a 4px gap at the bottom. (?)

    #71831
    Nipperkin
    Member

    I’m using Firefox on a Mac and it looks fine. One thing I’m not seeing in your code is:

    Code:
    *footer {
    bottom: 0 !important;
    }

    I’ve used this to force a footer to the bottom of the page. Why not give it a try?

    #71833
    CraigC
    Member

    Thanks… tried it, but that didn’t work.

    #71838
    Nipperkin
    Member

    Hmm. Did you reset at the top of your CSS file?

    Code:
    * {
    margin: 0;
    padding: 0;
    }
    #71854
    CraigC
    Member

    Yes, tried it with the reset also.

    I did get rid of the gap at the top of the footer with:

    Code:
    #footer {margin:-3px 0 0 0;}

    in the conditional stylesheet.

    But no luck with the gap at the bottom.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.