• Hi there,

    I am trying to put two fixed sidebars in one post – one sidebar (an image) over another. The built in margins seem to have no effect on the outcome. I added a vspace=”20″ in one of the images. So I get a margin between them, but then there is a weird big gap between the two images that decreases to the 20px (what I set for the image margin) once I start scrolling.

    Is there a way to remove the gap?

    Thanks,
    Mike

    https://wordpress.org/plugins/q2w3-fixed-widget/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Max Bond

    (@max-bond)

    Hi!
    Sounds like CSS problem. Can I see the problem page?

    Thread Starter resachris

    (@resachris)

    http://www.biznesowerewolucje.com/od-czego-zaczac-biznes-online/

    I removed the second sidebar as it is a “live” post and it looked weird. I also had to do a 0 milisecs Refresh interval and tick the Use jQuery(window).load() hook as otherwise it would slow down the site big time to a point where it would not scroll smoothly.

    Plugin Contributor Max Bond

    (@max-bond)

    Look, this styles may cause the problem:

    .x-sidebar .widget:first-child {
        margin-top: 0;
    }

    and

    .x-sidebar .widget {
        margin-top: 2.75em;
    }

    First style is not applied to fixed widget, because it is not the first child when fixed ) Why not to use margin-bottom?

    Thread Starter resachris

    (@resachris)

    You mean margin-bottom in the plugin settings? I tried – It did not work.

    Plugin Contributor Max Bond

    (@max-bond)

    No, not plugin settings. You need to change your theme css:

    .x-sidebar .widget {
        margin-bottom: 2.75em;
    }

    Thread Starter resachris

    (@resachris)

    Ok, will do. So what are the plugin settings for?

    Any comments on Refresh interval and tick the Use jQuery(window).load() hook ?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to deal with margins?’ is closed to new replies.