Forums

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

Home Forums CSS Responsive fixed header problem Re: Responsive fixed header problem

#131179
Senff
Participant

I don’t think it is possible to have the header “push down” the main content, when the header has a fixed position. Reason being that the fact that it’s fixed, it’s taken out of the document flow and it has no impact on its surrounding elements (= everything else on the page).

You probably can’t do this without some JS/jQuery where you calculate the height of the fixed header, and then use that to push down the main content. A bit like this: http://codepen.io/senff/pen/gaEzd.