Stop body padding being changed

We have a fixed header and the body top padding is dynamically set on load and on resize. When the cart is displayed the body top padding is set to 0 which causes the content to jump up. How can I stop this from happening?
Comments
  • fc_adamfc_adam FoxyCart Team
    @studiorepublic,

    Sorry to hear you've having troubles with Sidecart. Would it be possible to see the page ourselves? It is public that you could share a link to it? Feel free to whisper it to me if you'd prefer to keep it private - which you can do by clicking the "whisper" checkbox when completing your reply, and enter my forum username.
  • fc_adamfc_adam FoxyCart Team
    @studiorepublic,

    Thanks for the whispered link - this does indeed relate to the sidecart, as when it slides in and moves the body, it wraps your page markup in a new element. One work-around I believe should work for you here would be to apply the padding to the .sandpaper div instead of the body. Could that be a possible approach?
Sign In or Register to comment.