evaneaster Posted February 13 Share Posted February 13 I have this image that I want to have displayed at the full size without getting cropped by the CSS embedded in the code on both desktop and mobile. How can I do that using the Custom CSS? I know you're not supposed to use embedded text in banners, but that's besides the fact. This theme doesn't have enough font styling to achieve this result without it. Link to comment
evaneaster Posted February 13 Author Share Posted February 13 site URL: https://dcbhs.com/ Link to comment
Solution tuanphan Posted February 13 Solution Share Posted February 13 You can use this code to Website > Website Tools (under Not Linked) > Custom CSS @media screen and (max-width:640px) { body.homepage figure#thumbnail img { width: 100% !important; height: auto !important; left: 0 !important; } body.homepage .banner-thumbnail-wrapper.has-description { padding: 0 !important; height: 150px !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
evaneaster Posted February 13 Author Share Posted February 13 @tuanphan How about getting the image to display at full width on desktop as well. At the moment, squarespace crops it. Link to comment
tuanphan Posted February 14 Share Posted February 14 Which screen sizes do you see problems? It looks fine to me 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
evaneaster Posted February 15 Author Share Posted February 15 @tuanphan see how it gets clipped at the larger screen sizes on the top and bottom? this is at 2560x1440 and 1920x1080 Link to comment
tuanphan Posted February 16 Share Posted February 16 Try this CSS code @media screen and (min-width:1800px) { body.homepage .banner-thumbnail-wrapper { min-height: 300px; } } 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