Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS removing sidebars Reply To: removing sidebars

#171242
Atelierbram
Participant

Header is positioned absolute, which means it’s removed from the “page flow”. In DevTools I see a height of 146px. When you would give your .main element a top padding (or margin) of this height, then this will be compensated for.


.main {
  float: left;
  width: 100%;
  /* min-height: 730px; */
  padding: 146px 0 75px;
  background: #E9E6E0 url(../images/bgr/body.jpg) 0 0 repeat;
  /* display: inline-block; */
}

Now you can set your .under-header-sidebar to display: none without moving the main-content through the roof.