Peter550 Posted May 4, 2021 Posted May 4, 2021 Site URL: https://www.laztheplantscientist.com/ hi @tuanphan I have a background image with flowers as a border/frame. Its visible on my computer, with a relatively large screen ,but it disappears on smaller screens and mobile. Whats the best way to keep it visible for most platforms as possible without interfering with the type? Pete tuanphan
tuanphan Posted May 6, 2021 Posted May 6, 2021 Add to Design > Custom CSS /* Healing page mobile */ @media screen and (max-width:767px) { [data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img { object-fit: contain !important; width: 100% !important; height: auto !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!)
Peter550 Posted May 7, 2021 Author Posted May 7, 2021 Thats great that works on that page! What do I edit on the code so it applied accross site? @tuanphan
tuanphan Posted May 9, 2021 Posted May 9, 2021 On 5/7/2021 at 9:56 PM, Peter550 said: Thats great that works on that page! What do I edit on the code so it applied accross site? @tuanphan remove this line Quote [data-section-id="600237a6e40b7c3f2cd7e54a"] 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!)
Peter550 Posted May 11, 2021 Author Posted May 11, 2021 unfortunately this messed up the rest of the site (see screenshots) Any idea how to fix this @tuanphan?
tuanphan Posted May 12, 2021 Posted May 12, 2021 7 hours ago, Peter550 said: unfortunately this messed up the rest of the site (see screenshots) Any idea how to fix this @tuanphan? Which code did you add after remove above id? 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!)
Peter550 Posted May 18, 2021 Author Posted May 18, 2021 I added the following code: /* Healing page mobile */ @media screen and (max-width:767px) { [data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img { object-fit: contain !important; width: 100% !important; height: auto !important; } }
tuanphan Posted May 19, 2021 Posted May 19, 2021 15 hours ago, Peter550 said: I added the following code: /* Healing page mobile */ @media screen and (max-width:767px) { [data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img { object-fit: contain !important; width: 100% !important; height: auto !important; } } It looks like you solved? 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.