Home › Forums › CSS › removing sidebars › Reply To: removing sidebars
May 28, 2014 at 6:37 am
#171242
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.