Home › Forums › Support › CSS for Sticky Sidebar Element This topic has 10 replies, 3 voices, and was last updated 4 years ago by David. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts March 13, 2022 at 7:39 am #2152856 Kelsey Hello, How can I make the bottom element on this sidebar element sticky? https://thegoldenlamb.com/rankiq-keyword-niches/ You provided excellent CSS for regular posts with sidebar widgets but it doesn’t work for elements. Thanks, Kelsey March 13, 2022 at 8:19 am #2153070 DavidStaff Customer Support Hi there, try adding this CSS; @media(min-width: 769px) { .inside-right-sidebar *:last-child { position: -webkit-sticky; position: sticky; top: 20px; } } March 13, 2022 at 8:25 am #2153074 Robert hm, that didn’t work for me. March 13, 2022 at 8:25 am #2153075 Robert link to my site: https://www.watercolorfanatic.com/how-to-mix-watercolors/ March 13, 2022 at 8:46 am #2153087 DavidStaff Customer Support Hi Robert, your site is still using the old floats grid, so you would need some CSS like this: @media(min-width: 1024px) { .site-content { display: flex; } .inside-right-sidebar { position: -webkit-sticky; position: sticky; top: 20px; } } March 13, 2022 at 8:52 am #2153098 Robert That seemed to work. What is the old floats grid? And should I be using something newer? It’s a new site with all the current versions. Thanks March 13, 2022 at 8:59 am #2153102 DavidStaff Customer Support This doc explains the old Floats grid and how to move into flex box: https://docs.generatepress.com/article/switching-from-floats-to-flexbox/ If you make that change then the CSS I provided the OP should work for you March 13, 2022 at 10:21 am #2153147 Kelsey Thanks, David! Worked like a charm. March 13, 2022 at 10:41 am #2153174 DavidStaff Customer Support Glad to hear that March 13, 2022 at 11:03 am #2153192 Robert Switched to flex, works great! Thanks for the A+ support. March 14, 2022 at 4:52 am #2153821 DavidStaff Customer Support Glad to hear that too! Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In