stephenturner98 Posted June 11, 2020 Share Posted June 11, 2020 When adding a new section to my website - how can I use custom CSS to make the section smaller in height than the squarespace minimum height? An example of the look I am trying to achieve is attached. Please see the part in the green circle. Link to comment
tuanphan Posted June 11, 2020 Share Posted June 11, 2020 Add to Home > Design > Custom CSS [data-section-id="abcxyz"] { min-height: unset !important; height: 50px !important; } Find data section id with this tool. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff ziebol1 1 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
andfriendshippod Posted July 1, 2021 Share Posted July 1, 2021 On 6/11/2020 at 4:26 AM, tuanphan said: Add to Home > Design > Custom CSS [data-section-id="abcxyz"] { min-height: unset !important; height: 50px !important; } Find data section id with this tool. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff This worked for me! but now how do i make it responsive on mobile? Thank you. Link to comment
tuanphan Posted July 2, 2021 Share Posted July 2, 2021 On 7/1/2021 at 8:41 AM, andfriendshippod said: This worked for me! but now how do i make it responsive on mobile? Thank you. You can setup code for both desktop - mobile [data-section-id="abcxyz"] { min-height: unset !important; height: 50px !important; } @media screen and (max-width:767px) { [data-section-id="abcxyz"] { min-height: unset !important; height: 250px !important; } } JenTerpstra 1 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
Countonlola1 Posted October 15, 2021 Share Posted October 15, 2021 On 7/2/2021 at 10:08 AM, tuanphan said: You can setup code for both desktop - mobile [data-section-id="abcxyz"] { min-height: unset !important; height: 50px !important; } @media screen and (max-width:767px) { [data-section-id="abcxyz"] { min-height: unset !important; height: 250px !important; } } This did not work for me, is there another code option? Link to comment
tuanphan Posted October 18, 2021 Share Posted October 18, 2021 On 10/15/2021 at 9:17 PM, Countonlola1 said: This did not work for me, is there another code option? Have you changed abcxyz to new id yet? 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
JenTerpstra Posted May 14, 2022 Share Posted May 14, 2022 On 7/2/2021 at 3:08 AM, tuanphan said: You can setup code for both desktop - mobile [data-section-id="abcxyz"] { min-height: unset !important; height: 50px !important; } @media screen and (max-width:767px) { [data-section-id="abcxyz"] { min-height: unset !important; height: 250px !important; } } This worked for me, thanks! 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