Home › Forums › Support › Top Bar Alignment for Mobile This topic has 6 replies, 3 voices, and was last updated 5 months, 3 weeks ago by Tom. Viewing 7 posts - 1 through 7 (of 7 total) Author Posts October 4, 2022 at 2:24 pm #2363310 René I have a sandbox site setup for testing here: http://sandbox.tableaux.com/ How can I set the Top Bar Alignment to “Center” on mobile, but keep it Right aligned on Desktop? October 4, 2022 at 2:41 pm #2363324 YingStaff Customer Support Hi there, It looks the top bar alignment is correct. But you have this CSS which adds padding to the menu items so it’s a bit off on mobile: ol,ul { padding-left: 30px; } Try change it to: ol, ul:not(.top-bar ul) { padding-left: 30px; } October 4, 2022 at 2:49 pm #2363331 René That worked, but it pushed my primary navigation menu over. October 4, 2022 at 3:00 pm #2363345 YingStaff Customer Support The CSS change should not affect anything outside the top bar. And I checked your primary navigation menu, the padding still apply: https://www.screencast.com/t/3t17HA1AFq1 October 5, 2022 at 6:28 am #2363996 René Thanks for checking but it is still pushing the entire navigation to the right. See sceenvidcap: https://tableaux.com/files/video/ScreenRecorderProject2.mp4 October 5, 2022 at 7:26 am #2364036 René I got it figured out. I took changed the inner header width and then took off that css code altogether and it seems to be working now. October 5, 2022 at 10:03 am #2364373 TomLead Developer Lead Developer Glad you got it sorted! Another solution would be to make it so your custom CSS only applies to lists inside the content: .site-main ol, .site-main ul { padding-left: 30px; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development Author Posts Viewing 7 posts - 1 through 7 (of 7 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In