I use the following CSS to keep my nested sidebar navigation menus fixed:
#top #main .sidebar {
position: fixed;
}
It works great. But my problem is: It’s also affecting my Blog page, which does not have any nested pages in its sidebar, but it does have a very long list of blog post categories in its sidebar by using Sidebar Blog widgets. So I need the blog’s sidebar to be floating, not fixed.
Can I modify or add some CSS to make only the blog’s sidebar floating while keeping my nested navigation page sidebars everywhere else fixed?
Many thanks.
Update: I found a visual CSS editor plugin to help me. Here’s the code that solved my problem by allowing the blog sidebar to float:
.template-blog .sidebar_left{
position:relative !important;
}