Home › Forums › Support › Sticky Sidebar with Block Elements This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by Ying. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 2, 2021 at 1:11 pm #1679406 Thimo Hi there, I have build my sidebars using the block element feature, Now I want the last element in my post sidebar (related posts) to be sticky. I already tried several CSS snippets I found but so far, nothing worked. Could you help me out? Here is an example of a post where I would like to have a sticky element in the right sidebar: https://pingpong-guide.com/11-reasons-why-table-tennis-is-fun/ Love your Theme! March 2, 2021 at 1:20 pm #1679412 YingStaff Customer Support Hi Thimo, Did you just add some CSS into GB container’s Additional CSS class(es)? That field is for class, not for css code. Could you remove them first? https://www.screencast.com/t/p3BOEMhnV The right place to add CSS code is customizer > additional CSS. Let me know 🙂 March 3, 2021 at 12:13 am #1679799 Thimo Hi Ying, wow, thanks for the quick reply and the advice. I have tried both CSS fields just forgot to delete the code I entered. I removed the code. March 3, 2021 at 12:43 pm #1680901 YingStaff Customer Support Give this CSS a try 🙂 You could change the number after topto adjust the sticky position. @media (min-width: 769px) { .inside-right-sidebar { flex: 1; height: 100%; } .gb-container-b9b22c09, .gb-container-06e4c94d { position: sticky; z-index: 20; } .gb-container-b9b22c09 { top: 100px; } .gb-container-06e4c94d { top: 10px; } } March 4, 2021 at 12:39 am #1681382 Thimo Hi Ying, that worked perfectly. Thank you so much! Have a nice day 😉 March 4, 2021 at 9:50 am #1682220 YingStaff Customer Support You are welcome Timo 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In