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

Home Forums CSS A problem with position: fixed; Reply To: A problem with position: fixed;


OK…we need to cheat here a little.

Ideally we could just add a margin-top to #toppers and that would just drop everything down by the specified amount.

However, if you do just that then the margin technically has nothing to push against and the whole thing drops down.

I know, it’s stupid but that’s the way things are.

There is a fix where you add an invisible border-top which gives the margin something to push against and it seems to work.

So…try this on #toppers.

margin: 45px auto;
border-top: 1px solid transparent;