Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hi All,

    I've been having this issue for a few weeks not, and have just spent 3 hours going through the code, and am still nowehere.

    I'm trying to get my footer to always stick to the bottom of the page, so on pages where there is little content it isn't floating in the middle.

    The below is my CSS and the index page, this works in every browser bar internet explorer (surprise surprise) and it is doing my head in.

    Can anyone see where I am going wrong? any help would be hugely appreciated.

    Here's the CSS

    * {
    border:0px;
    margin:0px;
    padding:0px;
    }

    #banner {
    padding: 5px 0px 10px 0px;
    }

    #container {
    width:970px;
    margin:0 auto;
    height: 100%;
    position: relative;
    }

    #wrapper {
    position: relative;
    margin-bottom:45px;
    min-height: 100%;
    }
    #nav {
    margin-left:0px;
    text-indent:0px;
    text-align:center;
    }

    #menutab li {
    display:inline;
    list-style-type:none;
    font-family:Arial;
    font-size:18px;
    font-weight:100;
    text-align:center;


    }

    #menutab a {
    color:#9ea3ab;
    padding:5px 65px 5px 0px;
    text-decoration:none;
    text-align:center;
    }

    #menutab b {
    color:#9ea3ab;
    padding:5px 0px 5px 0px;
    text-decoration:none;
    text-align:center;
    }


    #menutab a:hover {
    color:#28957f;
    }

    #social .socialImage{float:right;

    }

    .divFloat {
    float:right;
    padding:0px 5px 0pc 0px;
    }

    .clear {
    clear:both;
    }

    #social {
    background:transparent;
    }

    #footer {
    Position:absolute;
    width:970px;
    height:45px;
    background-image:url(images/footer.gif); width:970px; height:45px;
    }



    #footermenu .footermenu{float:right;

    }

    #footermenu li {
    display:inline;
    font-family:Arial;
    list-style-type:none;
    font-size:16pt;
    }

    #footermenu a {
    color:#9ea3ab;
    font-family:Arial;
    padding:0px 5px 0px 0px;
    text-decoration:none;
    text-align:right;

    }

    #footermenu a:hover {
    color:#28957f;
    }

    .clearfooter {
    height:45px;
    clear:both;
    }
    #address {
    color:#28957f;
    font-family:Arial;
    font-size:16px;
    text-indent:5px;
    }

    #address2 {
    color:#9ea3ab;
    font-family:Arial;
    font-size:14px;
    text-indent:5px;
    }

    #contentbackground {
    background-image:url("images/homebackgroundimage.gif"); width:970px; height:400px;
    }

    #contentbackgroundcontact {
    background-image:url("images/contactbackgroundimage.gif"); width:970px; height:330px;
    }

    #contentbackgroundyouth {
    background-image:url("images/youthbackgroundimage.gif"); width:970px; height:350px;
    }

    #contectbackgroundwhoweare {
    background-image:url("images/whowearebackgroundimage.gif"); width:970px; height:700px;
    }

    #contentbackgroundmusic {
    background-image:url("images/musicbackgroundimage.gif"); width:970px; height:360px;
    }

    #contentbackgroundbrand {
    background-image:url("images/brandbackgroundimage.gif"); width:970px; height:500px;
    }

    #content {
    color:#9ea3ab;
    font-family:Arial;
    font-size:14px;
    padding:5px 30px 5px 50px;
    text-decoration:none;
    text-align:top;
    }

    #content2 {
    color:#9ea3ab;
    font-family:Arial;
    font-size:14px;
    padding:5px 30px 5px 70px;
    text-decoration:none;
    text-align:top;
    }

    #contentcontact {
    color:#9ea3ab;
    font-family:Arial;
    font-size:16px;
    padding:5px 30px 5px 50px;
    text-decoration:none;
    text-align:top;
    }


    h1 {
    color:#9ea3ab;
    font-family:Arial;
    font-size:16px;
    padding:5px 30px 5px 35px;
    text-decoration:none;
    text-align:top;
    }
    body {
    height: 100%;
    background-image:url("images/denimbackground.gif"); repeat;
    }

    And here's the html

    <html>
    <head>
    <meta http-equiv='X-UA-Compatible' content='IE=8' />
    <title>BREAK COMMUNICATIONS</title>
    <meta name="keywords" content="Break, break communications, Break Communications Home Page, Home page, Brands, communication, Public relations, PR, music, consultancy, youth, engagement, outreach, digital, events, partnerships, international, amplification, development, integrated, agency, online, print, press, bespoke, campaigns, strategic, creative, positioning, niche, specialist, marketing, messaging"> </meta>
    <link rel="stylesheet" type="text/css" href="breakstylesheet.css">
    </head>
    <body>
    <div id="container">
    <div id="wrapper">
    <div id="social">
    <div class="divFloat">
    <iframe src="http://www.facebook.com/plugins/like...&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:68px; height:21px;" allowTransparency="true"></iframe>
    </div>
    <div class="divFloat">
    <a href="blogholdingpage.html"><img src="images/blog.gif"/></a>
    <a href="http://twitter.com/#!/BreakComms"><img src="images/twitterlogo.gif"/></a>
    <a href="http://www.facebook.com/?ref=home#!/...59492744100587"><img src="images/fblogo.gif"/></a>
    </div>
    <div class="clear">
    </div>
    </div>

    <div id="banner">
    <img src="images/breakbanner.gif">
    </div>
    <div id="nav">
    <div id="menutab">
    <ul>
    <li><a href="index.html">HOME //</a></li>
    <li><a href="Who we are.html">WHO WE ARE //</a></li>
    <li><a href="Brand.html">BRAND //</a></li>
    <li><a href="Music.html">MUSIC //</a></li>
    <li><a href="Youth.html">YOUTH //</a></li>
    <li><a href="Contact.html">CONTACT //</a></li>
    </ul>
    </div>
    </div>
    <br>
    <div id="contentbackground">
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>

    <h1> We are Break Communications and we draw on a network of creatives to deliver innovative and individual communication campaigns.</h1>
    <br>
    <div id="content">
    <p> The teams and ideas are designed independently for each client, allowing us to create the most effective methods to reach your audience, raise your profile, identify the best partnerships and support your wider business strategies. </P>
    <br>
    <p> To keep up to date with BREAK and learn about our most recent work visit our <a href="blogholdingpage.html"><font color="#9ea3ab"> BLOG </font></a> </p>
    </div>
    </div>
    </div>
    <div class="push"></div>
    <div id="footer">
    <br>
    <div id="footermenu">
    <ul>
    <li><a href="index.html" class="footermenu">HOME //</a></li>
    <li><a href="blogholdingpage.html" class="footermenu">BLOG //</a></li>
    <li><a href="mailto:stephen@break-comms.com" class="footermenu">CONTACT //</a></li>
    </ul>
    </div>
    <div id="address">

    </div>
    </div>
    </div>
    </body>
    </html>

  2.  

  3. #2
    Senior Member Harmonic's Avatar
    Join Date
    Jan 2011
    Location
    Toronto
    Posts
    291
    Member #
    26468
    Liked
    23 times
    add this to your css
    #HTML {
    height: 100%;
    }

    If that doesn't work, make your footer position: relative;

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    www.kastlefireplace.com <-- I did it here. Borrow as needed.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    hey I've tried the html 100% and the position relative and it still won't stick to the bottom (still does in everything else)
    Any more ideas? so frustrating.

    @theGAME1264 could you send me the css for that site so I can cross reference?

  6. #5
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    hey I've tried the html 100% and the position relative and it still won't stick to the bottom (still does in everything else)
    Any more ideas? so frustrating.

    @theGAME1264 could you send me the css for that site so I can cross reference?

  7. #6
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    It's in the code, bro. Part of learning to be a good coder is learning how to isolate which code does what from examples and then preparing your own code from there.

    So to answer your question, "do it yourself." I'm not saying this to be a smartass. I'm saying this to try and help you help yourself.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  8. #7
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Hey mate,

    I understand why you're asking me to figure this out, but if you can see this I'd really appreciate it if you could point it out... just spend a good 2 hours going through this code and am not getting anywhere. At the point of nearly lobbing the two machines I am using to cross reference browsers out of the window!!!

  9. #8
    Senior Member Harmonic's Avatar
    Join Date
    Jan 2011
    Location
    Toronto
    Posts
    291
    Member #
    26468
    Liked
    23 times
    From theGames's site
    HTML Code:
    div#footer-container {
        position:  fixed;
        bottom:  0;
        left:  0;
        width:  100%;
        height:  4em;
        max-height:  100px;
        background-color:  #FFFFFF;
        color:  #000000;
        z-index:  1;
        font-size:  81.25%;
    }
    div#footer {
        height:  2em;
        max-height:  50px;
        width:  100%;
        overflow:  hidden;
        background:  URL(../images/search-gradient.png) bottom left repeat-x #000000;
        color:  #FFFFFF;
        margin:  0;
        padding:  0;
    }
    Pay attention to

    Code:
        position:  fixed;
        bottom:  0;
        left:  0;
        width:  100%;
    This will force the footer to ALWAYS be visible on the bottom of the page

  10. #9
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    What Harmonic said. It's the fixed positioning that does it.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  11. #10
    Senior Member
    Join Date
    Jan 2011
    Posts
    148
    Member #
    26229
    Liked
    1 times
    Thanks very much for this man, it's really appreciated.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:26 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com