1

I have some pages where content are too less, and footer goes up, I have fixed it, but now footer being inside of my page content for pages which have more content

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" />


<footer class="mt-5 footer bg-dark text-white" style="
   margin-top: 100px;   
   position:absolute;
   bottom:0;
   width:100%;
">
  <div class="container">
    <div class="row p-4">
      <div class="col text-center">
        <a href="#" class="twitter"><i class="fab fa-twitter fa-3x mr-4"></i></a>
        <a href="#" class="facebook"><i class="fab fa-facebook fa-3x mr-4 "></i></a>
        <a href="#" class="google"><i class="fab fa-google-plus fa-3x mr-4"></i></a>
      </div>
    </div>
  </div>
</footer>

enter image description here

1 Answers1

2

Put the footer inside the div and give it the following style

.container{
    position:relative;
    min-height:100vh;
}
footer{
    position:absolute;
    bottom:0;
    width:100%;
}