Home › Forums › Support › Need Centering Image in The Mobile Sidebar This topic has 3 replies, 2 voices, and was last updated 6 years, 3 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts December 26, 2017 at 9:01 pm #457556 Ridwan Hey Guys, I need to custom an image in right sidebar. This image look perfectly in desktop, but when I switch to mobile, it’s not centering. Here the screenshot (https://imgur.com/lCQ9qjX). I already try this method (https://docs.generatepress.com/article/centering-logo-mobile-header/), but it’s not working at sidebar. #media_image-3 { left: calc( 50% - 90px); /* 50% from the left - half your image width */ background: transparent !important; padding: 0; } I want the image at right sidebar centering when I browsing at mobile phone, just like this (https://imgur.com/n0I4myr). Thank you. π December 27, 2017 at 10:28 am #457945 LeoStaff Customer Support Hi there, Try this CSS: @media (max-width: 768px) { #media_image-3 { text-align: center; } } December 27, 2017 at 10:38 am #457963 Ridwan Cool, it works. Thanks Leo… π December 27, 2017 at 10:57 am #457980 LeoStaff Customer Support No problem π Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In