Site logo

Archived topic

Spacing between sidebar and footer

14 replies · Started by Carl on January 19, 2017

Viewing posts 1–15 of 15

Hi team - usually I would be happy to spend a few hours trying to find the solution for this but I am kind of pressed for time with out launch next week! Any solutions for the following issue? When the main content of a page is minimal, the sidebar widgets are compressing into the footer instead of maintaining spacing:

http://bit.ly/2k5CPmd

Thanks Leo, but unfortunately didn't change anything.

Weird...Just tested the code and it seems to work for me.

Any chance your site is live?

Don't think you've provided the right page...That page has enough content so that the sidebar doesn't touch the footer section.

Knew that would happen. I'll look again when I am at desk and flick through. Only a minor and no big rush. Sorry to be a pain.

No problem. Just provide the correct link and we will solve it :)

Ok, I can't replicate the issue unless the user is logged in. I have two sidebar widgets which grow to accommodate user achievements and site navigation, as per the video below. See what you think.

https://vimeo.com/200304496/db9e9527b0

Are you using a plugin in the sidebar widget to display those items?

Try this CSS:

.widget_ldcoursenavigation {
    margin-bottom: 20px !important;
}

Let me know.

No luck. The widget I am using came with the learndash plugin if that helps..

few more attempts before I go to sleep...
1. Try the code above again - I added !important
2. This CSS should push the sidebar away, but then you would have double the margin when the content is longer..

.site-footer {
    margin-top: 20px;
}

3. Create a temp user for me to log in and see what's going on when it expands.

As a test, I used developer tools to insert some more content into the widget: https://www.screencast.com/t/ommkOing2u

As you can see, the separator exists. I'm not sure how the plugin is adding content to the sidebar that would make the element ignore the margin. As Leo said, one of us would have to log in to take a look.

Thanks Leo and Tom!

.widget_ldcoursenavigation {
    margin-bottom: 20px !important;
}

That worked a treat! EPIC!

Glad we can help!

This archived topic is closed to new replies.