CHRISTIANA000 Posted August 19, 2021 Share Posted August 19, 2021 Site URL: http://www.peachycleanatl.com I need to add a line of custom CSS to fix the way this floating section on my Squarespace site is displaying on mobile. (see below. also attached a screenshot of how it displays correctly on desktop). Here is the code I used to create the floating section. Please help! //Floating Section @siteWidth: 1400px; @siteMargin: 8vw; section[data-section-id="60e6fc7b6d268043414e0d0a"] { padding-bottom: 100px; & + section { position: absolute!important; min-height: 0!important; z-index: 30; left: 50%; max-width: @siteWidth; width: ~"calc(100% - @{siteMargin} * 2)"; transform: translate(-50%,-50%); } & + section + section { padding-top: 100px; } } //Floating Section Customization // section[data-section-id="60e704cc7f66c71f361a3e3c"] { box-shadow: 10px 10px 15px rgba(0,0,0,0.25); } Link to comment
tuanphan Posted August 22, 2021 Share Posted August 22, 2021 Add to Design > Custom CSS /* Mobile float section */ @media screen and (max-width:767px) { /* padding under 2 buttons */ div#page-section-60e6fc7b6d268043414e0d0a { padding-bottom: 50px; } /* padding under float section */ div#page-section-60bbbf0b53bf365e4b7f4319 { padding-top: 120px; } } 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.