Answers for "react footer bottom"

CSS
-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
0

how to set footer to bottom of page in react js

In this way you can easily set footer to bottom no matter how much content is present in body 


apply this line of css code to parent element:
#app{
  display: flex;
  flex-direction: column;
  height: 100vh;
}


and apply this line of single code to your footer which must be direct child of parent element 
.footer{
  margin-top: auto;
}
Posted by: Guest on September-15-2021
0

place footer at the bottom of the page react

position:absolute;
left:0;
bottom:0;
right:0;
Posted by: Guest on August-26-2021
0

place footer at the bottom of the page react

height: calc(100% - 60px);
Posted by: Guest on August-26-2021
0

place footer at the bottom of the page react

padding-bottom:60px;
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language