Answers for "footer at the bottom of the page"

-2

how to fix the footer at the bottom of the page

#footer {
   position:fixed;
   left:0px;
   bottom:0px;
   z-index:1;
   width:100%;
}
Posted by: Guest on May-20-2021
2

push footer to bottom

.flex-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between
}
Posted by: Guest on August-13-2020
-1

keep footer at bottom of page

#footer {
  position: relative;
  margin-top: -180px;
  /* negative value of footer height */
  height: 180px;
  clear: both;
 /*Custom styling*/
}

/* Opera Fix thanks to Maleika (Kohoutec) */

body:before {
  content: "";
  height: 100%;
  float: left;
  width: 0;
  margin-top: -32767px;
  /* thank you Erik J - negate effect of float*/
}
Posted by: Guest on November-16-2020
4

footer at bottom of body

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}
Posted by: Guest on May-09-2021
0

footer bottom

<script>
    $(document).ready(function() {
        setInterval(function() {
            var docHeight = $(window).height();
            var footerHeight = $('#footer').height();
            var footerTop = $('#footer').position().top + footerHeight;
            var marginTop = (docHeight - footerTop + 10);

            if (footerTop < docHeight)
                $('#footer').css('margin-top', marginTop + 'px'); // padding of 30 on footer
            else
                $('#footer').css('margin-top', '0px');
            // console.log("docheight: " + docHeight + "n" + "footerheight: " + footerHeight + "n" + "footertop: " + footerTop + "n" + "new docheight: " + $(window).height() + "n" + "margintop: " + marginTop);
        }, 250);
    });
</script>
Posted by: Guest on October-14-2021

Code answers related to "footer at the bottom of the page"

Browse Popular Code Answers by Language