happyscone Posted September 19, 2021 Share Posted September 19, 2021 Site URL: https://cone-tuna-x47f.squarespace.com/ I am trying to target the last image in this gallery to hide on mobile only to avoid the empty white space. Thanks in advance for the help! https://cone-tuna-x47f.squarespace.com/ pw: haircare Link to comment
Solution tuanphan Posted September 19, 2021 Solution Share Posted September 19, 2021 Use this CSS @media screen and (max-width:767px) { [data-section-id="61297e8589e75c71b3b55287"] figure:nth-child(n+5) { display: none; } } 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
happyscone Posted September 20, 2021 Author Share Posted September 20, 2021 @tuanphan thank you so much! tuanphan 1 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