Home › Forums › Support › Sidebar width to 300px This topic has 9 replies, 3 voices, and was last updated 3 years, 11 months ago by Leo. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts May 4, 2020 at 6:43 am #1268743 Huseyin Hi Generatepress Team I know there are so many tickets for sidebars, tried all of them none of them helped me. So I need to have a sidebar of 300px in width, for adsense ad. Currently the container width is set at 1100px. May 4, 2020 at 7:38 am #1268803 DavidStaff Customer Support Hi there, try this CSS: @media (min-width: 769px) { .right-sidebar .site-content { display: flex; } .right-sidebar #right-sidebar { width: 380px; } .right-sidebar #primary { flex: 1 0; } } note in the code width: 380px; its set to 380px as your Sidebar padding is set to 40px. May 4, 2020 at 1:27 pm #1269487 Huseyin Could you have a check? it’s not working URL https://wordpress-394091-1251842.cloudwaysapps.com/how-to-ace-your-hsc-english-exam/ May 4, 2020 at 1:50 pm #1269519 LeoStaff Customer Support I’m not seeing David’s CSS being added. How are you adding it? Are you using any caching plugins? May 4, 2020 at 1:54 pm #1269529 Huseyin Solved it, just moved the CSS to the top and it worked May 4, 2020 at 1:55 pm #1269532 LeoStaff Customer Support That means you have some CSS syntax errors which stop the code below the error from executing. May 4, 2020 at 1:58 pm #1269537 Huseyin How could I solve the CSS syntax errors? please thankss May 4, 2020 at 2:03 pm #1269541 LeoStaff Customer Support You can use a service like this to check: https://jigsaw.w3.org/css-validator/ May 4, 2020 at 2:16 pm #1269554 Huseyin legend, fixed few errors thank you, Leo May 4, 2020 at 2:25 pm #1269570 LeoStaff Customer Support No problem 🙂 Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In