The footer (navbar) does not apply to the sidebar

I am new to web page development. So please carry me. I made a footer for my site using the navigation bar in Bootstrap 3.

I need the footer to stay at the bottom of the page. I have my grid as 2 8 2. Now the footer works fine for the middle grid, i.e. col-8. But unsuccessful for the right column.

FOOTER:

<div class="footer navbar navbar-default navbar-fixed-bottom">
    <div class="container">
        <p class="navbar-text pull-left"> Footer</p>
    </div>
</div> 

CSS

.footer { 
    position:relative;
    background-color:#ccffcc;
    color: white; 
}

.container { 
    width: auto;
    max-width: 680px;
    padding: 0 15px;
    height:auto;
}

Problem scene:   Look at the right side of the page. Anxious footer with sidebar .... so to speak.

+4
source share
1 answer

bootstrap sticky-footer, .

html/css :

CSS:

* {
    margin: 0;
}
html, body {
    height: 100%;
}
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -155px; /* the bottom margin is the negative value of the footer height */
}
.footer, .push {
    height: 155px; /* .push must be the same height as .footer */
}

HTML:

<div class="wrapper">
  <p>Your content.</p>
  <div class="push"></div>
 </div>
 <div class="footer">
   <p>Copyright</p>
 </div>
+1

Source: https://habr.com/ru/post/1628949/


All Articles