Melly Posted December 24, 2021 Share Posted December 24, 2021 Site URL: https://www.melaniemurphy.org/art Hi! I have an unlinked page that I am working on in the Avenue template in which I have uploaded an alternative header/logo image using custom code. I am however, experiencing difficulty centring the header/logo image for mobile view. The image crops on the right hand side. The attached screenshot shows the image cropped in mobile view. The code injection I have used is as follows; <style> .logo { content: url(https://static1.squarespace.com/static/5518eef0e4b00c2cab3bf9cf/t/61baee107a53c24b0b46bcc3/1639640668258/Website-banner-art.png) } </style> I am not sure what code I need to ensure the image remains responsive in mobile view? Appreciate any help and advice people may have! 🙂 Thank you! Link to comment
tuanphan Posted December 25, 2021 Share Posted December 25, 2021 Don't remove any code in your current code. Add this to Design > Custom CSS @media only screen and (max-width:750px) { h1.logo { height: 120px !Important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment