ILong Posted May 2 Share Posted May 2 Hi everyone, I seem to be having an issue using this code to remove a background image on mobile. The first time I use the code it works perfectly and the background image disappears. Then, when I copy/paste it to use it again for another section on the page, it does nothing! If I try and put both section ids in the same code separated by a comma, it works, but then the first section content disappears entirely. The page link: https://clinicaleftconnect.squarespace.com/our-approach-to-eft-tapping password: cec2024 Here is what I have pasted in: //wavy background removal on mobile// @media screen and (max-width:767px) { section[data-section-id="662b0cb2821dca18fb41d9cd"] .section-background { visibility: hidden; } section[data-section-id="662b0cb2821dca18fb41d9cd"].section-background { background-color: #FFFCF8; } } @media screen and (max-width:767px) { section[data-section-id="6621d31f097c0d6f2308f6ef"].section-background { visibility: hidden; } section[data-section-id="6621d31f097c0d6f2308f6ef"].section-background { background-color: #FFFCF8; } } TIA! Ioana Link to comment
Solution tuanphan Posted May 3 Solution Share Posted May 3 Need a space in these red position. Also, visibility: hidden will make elements invisible 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
ILong Posted May 7 Author Share Posted May 7 Hi @tuanphan thank you for pointing out the need for spaces! This resolved the issue😀 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