• Resolved Camilo

    (@runonce)


    When the lightbox opens up, it’s adding a padding-right: 15px to the <body> tag. I believe this is to compensate the cases where the overflow: hidden hides the vertical scrollbar. But when there is no scrollbar at all, this padding still applies and gives some odd results.

    See this behaviour in action:

    https://www.useloom.com/share/14046254bede46a38df0933800727748

    I tried applying a padding-right: 0 !important to the body, which only inverts the problem (now it works good without a scrollbar but odd with the scrollbar).

    • This topic was modified 5 years, 11 months ago by Camilo.
    • This topic was modified 5 years, 11 months ago by Camilo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB itself does not apply any styling to the body element, but it is possible for a lightbox theme to do so.

    As it appears you are using a custom lightbox theme, please provide a link to the theme as well as a link to a page that exhibits the issue you are experiencing, and I would be glad to take a closer look.

    Thanks.

    Thread Starter Camilo

    (@runonce)

    Thanks!

    I’m making my own WordPress theme (https://github.com/oncet/tini), if that’s what you mean. I don’t have a public environment yet.

    Anyway, seems like this isn’t a SLB issue so I’m clossing this topic.

    • This reply was modified 5 years, 11 months ago by Camilo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Body Margin Right’ is closed to new replies.