Jump to content

Creating border with exceptions

Recommended Posts

Site URL: https://kollektiv.studio/about

Hello lovely community,

I have been really struggling to create bottom borders and hide those borders for certain sections of the site (images below). The site is using a template I bought (and can't get help from them - long story).

There is a sticky image section to the right on both kollektiv.studio/creative and kollektiv.studio/about that I need to 'exempt' or hide the borders/lines on, otherwise they go across the image. The code I tried to use is as follows (But I am getting a syntax error):

[data-section-id="62ddaaa1b1b73a149a8ede39”], [data-section-id="62dc3c868c9f8c11cb95963d"]  .page-section{border-bottom: hidden}

Right now, I am using a makeshift solution that places bottom borders on certain 'children'  (see code below) that doesn't interfere with the sticky image, but I would love to do this the other way around (where I have this code: .page-section{border-bottom:0.25px solid #002409} for the entire site and then hiding the bottom border for the sections I mentioned above.

.page-section:nth-child(1) {border-bottom :0.25px solid #002409}  

.page-section:nth-child(2) {border-bottom :0.25px solid #002409}

.page-section:nth-child(3) {border-bottom :0.25px solid #002409}

.page-section:nth-child(9) {border-bottom :0.25px solid #002409}

.page-section:nth-child(10) {border-bottom :0.25px solid #002409}

.page-section:nth-child(12) {border-bottom :0.25px solid #002409}

.page-section:nth-child(15) {border-bottom :0.25px solid #002409}

This has been a real head banger for me. Hope someone out there can help.

Thanks in advance!!!

Screen Shot 2022-08-09 at 19.00.32.png

Screen Shot 2022-08-09 at 19.00.16.png

Link to comment
  • Replies 8
  • Views 485
  • Created
  • Last Reply

Top Posters In This Topic

No, I mean I want to place more bottom borders across the site, but when I do it site wide with code or for a 4 or 5 or 6th child, the line continues across the image - like so (when I add: .page-section:nth-child(5) {border-bottom :0.25px solid #002409}

And I don't know how to create an exception to hide the line for these two sections with a sticky image. 

Make sense?

And THANK YOU for looking into it/helping.

Screen Shot 2022-08-10 at 20.36.58.png

Link to comment
  • 2 months later...
16 hours ago, MinerMan2022 said:

Hi @tuanphan sorry I did not explain clearly. The line in the middle of the boxes (highlighted in pink box below) Thank you. 

Screen Shot 2022-10-11 at 10.38.02 AM.png

Find & remove this code

.sqm-image-boxes .sqs-layout:after {
    content: "";
    width: 100%;
    height: 1px;
    background: #000;
    position: absolute;
    bottom: 95px;
    left: 0;


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.