billydupee Posted July 18, 2020 Share Posted July 18, 2020 Site URL: http://www.billydupee.co.uk Hi there, my home page images are set to be full width on desktop/laptop. However when I view my site on mobile they are cropped and wont resize to fit mobile. Can I set them to resize just for mobile but stay full width on desktop/laptop? Thanks Link to comment
billydupee Posted July 20, 2020 Author Share Posted July 20, 2020 Hi there, here are screen shot examples of what I mean. I want to be able to control the cropping on the images on mobile and show specific parts of the images for mobile whilst showing the full image for Desktop. Desktop: Link to comment
tuanphan Posted July 26, 2020 Share Posted July 26, 2020 Add to Home > Design > Custom CSS @media screen and (max-width: 640px) { #index-section-studio-171 figure img { width:100% !important; left: 0 !important; height: auto !important; top: 0 !important } #index-section-studio-171 article.index-item.has-item-image { height: 35vh !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
billydupee Posted July 27, 2020 Author Share Posted July 27, 2020 Hi there, how do I apply this to the whole home page? Link to comment
billydupee Posted August 1, 2020 Author Share Posted August 1, 2020 @tuanphan Thanks for helping on this. The code worked on the first project image. But how can I apply this to all projects on the home page when viewed on mobile? Please let me know the code. Thanks Link to comment
tuanphan Posted August 3, 2020 Share Posted August 3, 2020 Try editing to this @media screen and (max-width: 640px) { .homepage .index-section figure img { width:100% !important; left: 0 !important; height: auto !important; top: 0 !important } .homepage article.index-item.has-item-image { height: 35vh !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
Archived
This topic is now archived and is closed to further replies.