Jumbojet Posted May 10, 2021 Posted May 10, 2021 Site URL: https://lion-pike-eywa.squarespace.com/ Hi, I'm trying to resize the banner image on my website for mobile so that the logo doesn't crop off in this display. I'm a beginner at CSS codes and have tried several codes i found online, of which none seem to work. Here's one I'm currently using: @media only screen and (max-width:640px) { #block-55e89da83b15440928f7 {width:0%; margin:auto}} Can someone help me figure out what I'm doing wrong? https://lion-pike-eywa.squarespace.com/
tuanphan Posted May 12, 2021 Posted May 12, 2021 Hi, You mean Game Change Enablers image on mobile? Add to Design > Custom CSS > Then save & reload the site /* Resize background image effect */ @media screen and (max-width:767px) { [data-section-id="6094ec2a8bdc1346da159ab6"] .section-background-content { z-index: 999; position: relative !important; } [data-section-id="6094ec2a8bdc1346da159ab6"] .section-background-canvas { visibility: hidden; } [data-section-id="6094ec2a8bdc1346da159ab6"] img { visibility: visible !important; height: auto !important; } [data-section-id="6094ec2a8bdc1346da159ab6"] { min-height: unset !important; height: 25vh !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!)
Jumbojet Posted May 21, 2021 Author Posted May 21, 2021 Worked like a charm @tuanphan Thanks so much!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.