Jump to content

Struggling with CSS on Live Site, but shows in Editor (mostly)

Recommended Posts

 I used CSS to make a couple of angled sections but for some reason on the live site it won't pickup the angle on the header section.. I am using it twice in order to do different sections on the page. Could that be causing issues? 

#COLLECTIONID { 
  #page .page-section:nth-of-type(1) { 
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 100% 0%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%); 
  } 
}

the header is a video.. could that be the problem?

 

Screen Shot 2022-11-29 at 2.18.37 PM.png

Link to comment
  • Replies 3
  • Views 565
  • Created
  • Last Reply

Top Posters In This Topic

17 hours ago, KCAllgood said:

 I used CSS to make a couple of angled sections but for some reason on the live site it won't pickup the angle on the header section.. I am using it twice in order to do different sections on the page. Could that be causing issues? 

#COLLECTIONID { 
  #page .page-section:nth-of-type(1) { 
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 100% 0%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%); 
  } 
}

the header is a video.. could that be the problem?

 

Screen Shot 2022-11-29 at 2.18.37 PM.png

Can you share your site so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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
On 12/8/2022 at 4:40 AM, egrimm said:

 

I am having the same issue! 

My site is: https://rrs.squarespace.com

You can see the blue video overlay has the clipping path applied, but not the video itself.

This is the code I am using:

section[data-section-id="6120187c92e3823b1c2462bd"]{ 
  clip-path: polygon(100% 0, 100% 50%, 50% 100%, 0 50%, 0% 0%) !important;

 

Change to this

section[data-section-id="6120187c92e3823b1c2462bd"], section[data-section-id="6120187c92e3823b1c2462bd"] .section-border {
    clip-path: polygon(100% 0,100% 50%,50% 100%,0 50%,0% 0%) !important;
}

image.thumb.png.1b502529235ee77527ab9d7d2f87fce8.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.