Site logo

Archived topic

How to keep left side bar sticky

9 replies · Started by Winnie on August 22, 2020

Viewing posts 1–10 of 10

Hi there,

Can you try this instead?

.both-sidebars #left-sidebar .inside-left-sidebar {
    height: 100%;
}
.both-sidebars #left-sidebar .inside-left-sidebar .widget_nav_menu {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
}

Hi Leo, I have tried your code, it's not working.

Hi there,

try this CSS:

.site-content {
    display: flex;
}
.site-content > div {
    left: unset !important;
}

#left-sidebar {
    order: -1;
}

#left-sidebar .inside-left-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
}

Hi David, I have inserted your code, it is not working.

Hi David,

The latest code is working now, thank you!

Best,
Winnie

You're welcome

Hi,

the code works perfectly. But it does not with my #breadcrumbs positioned on top and across all three columns of the content area. Any solution for this?

https://drwjs.com

Cheers

Hi there,

your site URL is reporting 502 bad gateway.

Can you fix that and create a new topic where we can look at your issue.

This archived topic is closed to new replies.