cynanc Posted March 16 Share Posted March 16 Hello SS. see: https://www.nerv.co.uk I've added some custom CSS chevrons to the end and beginning of sections as follows: This is an example of the code I am using: section[data-section-id="6411cfe88e268e5653a774b3"] { ::before { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; width: 50%; height: 100%; position: absolute; content: ""; bottom: 1.2em; left: 0; background: #EAECE7; -webkit-transform: skewY(4deg); transform: skewY(4deg); } &:after { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; width: 50%; height: 100%; position: absolute; content: ""; bottom: 1.2em; right: 0; background: #EAECE7; -webkit-transform: skewY(-4deg); transform: skewY(-4deg); } } It's fine on mobile and when the desktop browser is 'standard' width, but as you can see when the browser is stretched wider, the chevron breaks and the 'sharp' point in the middle is lost. Any smart folks out there able to help me fix this? Many thanks. Link to comment
Beyondspace Posted March 16 Share Posted March 16 (edited) I can not see the problem on your site. Can you mark your issues on your images? Edited March 16 by Beyondspace BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
cynanc Posted March 16 Author Share Posted March 16 Thanks for coming back on this. On this one you can see the chevron breaks in the centre: And on this one you can see where the outside edges of the chevron don't overlap the block below and there is a crack of white instead of a solid background. Link to comment
cynanc Posted March 21 Author Share Posted March 21 @Beyondspace Any thoughts on this? 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