Jump to content

custom footer divider using a svg

Go to solution Solved by Web_Solutions,

Recommended Posts

Hello everyone,

I would like to apply this code (written for custom section dividers using a svg image) on the footer of a website.
Does anyone knows how to modify the selectors for that?

 

//Custom Section Divider//
#siteWrapper [data-section-id="650d5074e0ed013d7b087264"] {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

Link to comment
22 minutes ago, gab said:

it doesn't work 😞

Just footer.sections not #siteWrapper [data-section-id="650d5074e0ed013d7b087264"]  like this 

footer.sections {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
13 hours ago, Web_Solutions said:

Just footer.sections not #siteWrapper [data-section-id="650d5074e0ed013d7b087264"]  like this 

footer.sections {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

thank you very much... but still doesn't work

Link to comment
  • 4 weeks later...
On 10/15/2023 at 7:13 PM, Web_Solutions said:

Just footer.sections not #siteWrapper [data-section-id="650d5074e0ed013d7b087264"]  like this 

footer.sections {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

it doesn't work

Link to comment
2 hours ago, gab said:

it doesn't work

You have added this code. Please remove it.

#page {
    z-index: 9;
}

 

Screenshot_363.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
Just now, gab said:

thank you, but I cannot find that code you tell me to remve, where are you seeing it?

Can you share all of the code on the Custom CSS section?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
5 hours ago, Web_Solutions said:

Can you share all of the code on the Custom CSS section?

sure:

 

//Custom Section Divider//
footer.sections {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

Link to comment
  • Solution
6 minutes ago, gab said:

sure:

 

//Custom Section Divider//
footer.sections {
  .section-background {
  overflow: visible;
  &:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
  -webkit-mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    mask: url(https://static1.squarespace.com/static/650d5073e0ed013d7b08723e/t/650f07edb846d85a6d29d505/1695483885650/GRASS.svg) bottom no-repeat;
    margin-top: 1px;
    transform: translateY(-100%);
    position: absolute;
    pointer-events: none!important;

    @media screen and (max-width: 800px) {
      -webkit-mask-size: 300% 50%;
              mask-size: 300% 50%;
    }}}
}

Can you add this code and let me know if it work?

#page {
    z-index: 0 !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
On 11/10/2023 at 3:19 PM, Web_Solutions said:

Can you add this code and let me know if it work?

#page {
    z-index: 0 !important;
}

 

yes, thank you so much!!! 🙂

Just for curiosity, would you please tell me what that code does?

Link to comment
1 hour ago, gab said:

yes, thank you so much!!! 🙂

Just for curiosity, would you please tell me what that code does?

You can learn about it here

https://www.w3schools.com/cssref/pr_pos_z-index.php

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.