Home › Forums › CSS › A problem with position: fixed; › Reply To: A problem with position: fixed;
August 13, 2013 at 7:10 am
#146674
Paulie_D
Member
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;