1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Unread post offset from top with fixed nav bar

Discussion in 'Styling and Customization Questions' started by lantek, Jun 25, 2015.

  1. lantek

    lantek Active Member


    We are running a fixed nav bar at the top of the screen, and having an issue when clicking through to 'Unread posts'. The fixed nav bar is covering about 50% of the first of the unread posts in the thread. Anyone have any ideas on how to handle this?

    Many thanks.
  2. Adam K M

    Adam K M Active Member

    Is this only happening on your unread posts page? Your otherbpages aren't having things like the top breadcrumb being covered?
    If they are, I believe the following CSS should do the trick.
    #content {
    margin-top: @YourFixedNavHeight;
  3. lantek

    lantek Active Member

    Yes just on unread posts page. The others are handled from the code you suggest. It is related to using the hash to go to an in page anchor, which is ignoring that content margin.
  4. Adam K M

    Adam K M Active Member

    @lantek Just to clarify, when a user hits the "new posts" underneath the main forum navigation (sublinks), it takes them to the new posts page, but with an in-page anchor?

    For the life of me, I can't find this happening on the default theme.
  5. lantek

    lantek Active Member

    Sorry no, I'm referring to clicking a thread title on the thread listing page, and going to the first unread post in that thread.

Share This Page