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;


Thanks. But that wouldn’t work and I kinda understand why.

I should need to create a new empty div above #toppers as for a margin to work it need to have something to push away from as you explained.

To test I tried creating this div in index.html:

Ok, I can’t figure out how to add code to this message, but basically I just added a new div tag to the html document with div style width=1px and height=1px

Sure it works, but it’s not so clean. Any better solution than creating an empty div?