News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Anchor adjustment

Started by lc62003, June 05, 2015, 04:25:48 PM

Previous topic - Next topic

lc62003

Hi all!  Hope you're having a great Friday.  :)

I would like to maintain a static banner at the top of my forum.  Using css position: fixed is easy enough.  The only problem is anchors end up under the banner, i.e. following a "new" link to the first new post means the top is covered by the banner.  How can I adjust the anchor up (or page down)?   :D

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

lc62003

Quote from: Krash on June 05, 2015, 10:03:22 PM
position: relative

Sure, but where?  I'm using FF Web Developer add on but having little success finding where it needs to go.   :(

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

Antechinus

You probably don't even need relative positioning. A simple margin or padding adjustment on the body tag will probably fix it.

Advertisement: