• Resolved DeeperLook

    (@deeperlook)


    Hi there,

    Is it possible to have the Fix Header begin before it hits the top of the browser window?

    I’d like to have it sit about 60px from the top of the browser window as the user scrolls down but I can’t seem to find anything in the documentation or in this support forum that discusses this.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For this, simply use the extra Shortcode parameter to add an offset that is mentioned on the Extension’s help page at https://tablepress.org/extensions/datatables-fixedheader/

    Regards,
    Tobias

    Thread Starter DeeperLook

    (@deeperlook)

    Hi Tobias,

    Thanks for that. However, I don’t want the table to be seen above the header.

    With the shortcode datatables_fixedheader_offsettop=60 the table is seen above the header as the user scrolls down and up, I just want the background of the section to show (ie #fff).

    Is this possible?

    Thanks.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, sorry, I’m not aware of a solution for that. The idea of this offset parameter is to account for sticky navigation bars at the top of the screen, but if you don’t have one, this doesn’t really make sense.

    Regards,
    Tobias

    Thread Starter DeeperLook

    (@deeperlook)

    Ah that’s okay, I’ve made a temporary solution while we implement a JS solution.

    .tablepress.fixedHeader-floating {
    border-top: 60px solid #fff;
    }

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, very nice idea of using a border! Thanks for sharing this!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fixed Header Top Margin (Spacing)’ is closed to new replies.