startbootstrap-simple-sidebar icon indicating copy to clipboard operation
startbootstrap-simple-sidebar copied to clipboard

Sidebar does not cover footer

Open ChrTall opened this issue 5 years ago • 1 comments

I use your Simple Sidebar which was easily configured and is pretty nice. Thanks a lot by the way. The only thing that I cannot get to work is placing the footer so that it gets covered by the sidebar. The same way to sidebar is covering the navbar and content for example. I placed the footer inside the #page-content-wrapper div. Maybe it is just a configuration issue. Any help would be appreciated.

ChrTall avatar Aug 20 '20 19:08 ChrTall

@ChrTall I had the same issue too. The way I fixed was to place the Footer outside the <div class="d-flex" id="wrapper"> and add bg-light to the footer class as mentioned below.

<div class="d-flex" id="wrapper">
<div id="page-content-wrapper">
    <header>
     .....
     </header>
     <div class="container-fluid">
           <main role="main" class="pb-3">
            @RenderBody()
           /main>
      </div>
</div>
</div>
<footer class="border-top footer text-muted bg-light">
     <div class="container-fluid">
      .......
     </div>
</footer>

Also comment out the margin-botton in the site.css (wwwroot > css > site.css)

body {
  /* Margin bottom by footer height */
  /*margin-bottom: 60px;*/
}

satpal123 avatar Aug 25 '20 07:08 satpal123