html - Sticky Footer not working -
i'm trying make footer going down contents appears, i'm getting footer in middle of page, right below of navbar, want @ bottom of page , automatically pushed content, tried tutorial here don't know if did right, didn't, because isn't working, can me?
<div id="wrapper"> <div id="banner"> <img src="../img/banner2.png" width="1024" height="173" longdesc="../index.php" alt=""/> </div> <div id="navigation"><?php include('c:/xampp/htdocs/legendofgames/includes/navbar.php'); ?> <div id="apdiv4"> <?php include('c:/xampp/htdocs/legendofgames/includes/menu_cat.php'); ?> </div> <div id="fb-root"></div> <div id="like"> <div class="fb-like-box"></div></div> <div id="apdiv2"> <!-- templatebegineditable name="gamespace" --> <h1> </h1> <!-- templateendeditable --> <!-- templatebegineditable name="editregion4" --> <!-- templateendeditable --></p> </div> <div id="apdiv1"><img src="../img/lateralb2.png" width="209" height="592" alt=""/> </div> </div> <footer class="site-footer"> </footer>
the css code:
body { width:100%; height:100%; background-color: #fff; background-image: url(../img/bg.png); background-repeat: repeat; } #wrapper { width: 1024px; margin-right: auto; margin-left: auto; min-height: 100%; top: 5px; margin-bottom: -200px; display: block; } .site-footer, .page-wrap:after { /* .push must same height footer */ height: 200px; } .site-footer { background-image: url(../img/foot.png); }
looking good, need use absolute positioning , bottom of 0.
.site-footer { background-image: url(../img/foot.png); position: absolute; bottom: 0; width:100% }
make sure use width:100%; i'm sure save bugs later on in project.
Comments
Post a Comment