cariboustudio Posted March 22 Share Posted March 22 Hi, I want to have a different image for the mobile version of my landing page. The desktop image is a landscape format image that fits great, but when on mobile, it looks weird. I would like to use CSS code to make a different image appear in the background when on mobile. Thanks Link to comment
tuanphan Posted March 25 Share Posted March 25 Hi, You can share link to page where you have problem, I think we can use CSS code to resize image on mobile 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
cariboustudio Posted March 28 Author Share Posted March 28 Hi, Sure, here is the link : www.caribou.studio Thanks! Link to comment
tuanphan Posted March 31 Share Posted March 31 On 3/28/2024 at 7:12 AM, cariboustudio said: Hi, Sure, here is the link : www.caribou.studio Thanks! You mean the kid image on top of page? You can use this code to Website > Website Tools > Custom CSS @media screen and (max-width:991px) { [data-section-id="6606d1401a1965585d987265"] { min-height: unset !important; height: 60vh; } } This code will resize image on mobile, but if you need code to replace with new image, let me know, I will give another code. 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
cariboustudio Posted April 1 Author Share Posted April 1 Hi, thanks for the code. And yes, I want to replace with a different image. I managed to do it by creating different sections and display only one on mobile and the other on desktop. But if you know a simpler code, that would be great. I wouldn't have to create different sections in the future. Link to comment
tuanphan Posted April 3 Share Posted April 3 On 4/1/2024 at 10:54 PM, cariboustudio said: Hi, thanks for the code. And yes, I want to replace with a different image. I managed to do it by creating different sections and display only one on mobile and the other on desktop. But if you know a simpler code, that would be great. I wouldn't have to create different sections in the future. You can send me image file, I can give code to replace desktop image with this image on mobile, so need to need to create a second section 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
cariboustudio Posted April 4 Author Share Posted April 4 Hi, here is the image for mobile. Thanks! Link to comment
tuanphan Posted April 7 Share Posted April 7 I see you added 2 sections and show 1 on mobile. Do you still need help? 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
cariboustudio Posted April 9 Author Share Posted April 9 Hi, It works fine this way. But if you have a code that would allow me to have only one section, but different images on mobile versus desktop, I would like to know it. Thank you! Link to comment
tuanphan Posted April 13 Share Posted April 13 On 4/9/2024 at 11:36 PM, cariboustudio said: Hi, It works fine this way. But if you have a code that would allow me to have only one section, but different images on mobile versus desktop, I would like to know it. Thank you! You can duplicate the page & share link to duplicated page, I can give code for this page, then if it works, I will adjust code for main page 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
cariboustudio Posted April 16 Author Share Posted April 16 OK, I duplicated the page and here is the link to the copy : https://caribou.studio/home-1 Link to comment
tuanphan Posted April 18 Share Posted April 18 On 4/16/2024 at 11:03 PM, cariboustudio said: OK, I duplicated the page and here is the link to the copy : https://caribou.studio/home-1 Use this code to Website > Website Tools > Custom CSS @media screen and (max-width:767px) { [data-section-id="661ea105dada2b0e8477b680"] img { content: url(https://content.invisioncic.com/p289038/monthly_2024_04/caribou-PE24-background-mobile.thumb.jpg.9ced126e830618173bd5175548d5a9cc.jpg); } } 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
cariboustudio Posted April 18 Author Share Posted April 18 Works like a charm 🙂 Thanks so much! 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