gab Posted October 3, 2023 Posted October 3, 2023 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%; }}} }
tuanphan Posted October 6, 2023 Posted October 6, 2023 Can you share site url? We can check footer code easier 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!)
gab Posted October 8, 2023 Author Posted October 8, 2023 On 10/6/2023 at 10:28 AM, tuanphan said: Can you share site url? We can check footer code easier sure: plantoga.de
tuanphan Posted October 12, 2023 Posted October 12, 2023 Try changing this ID #siteWrapper [data-section-id="650d5074e0ed013d7b087264"] to footer.sections 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!)
gab Posted October 14, 2023 Author Posted October 14, 2023 On 10/12/2023 at 10:45 AM, tuanphan said: Try changing this ID #siteWrapper [data-section-id="650d5074e0ed013d7b087264"] to footer.sections like this?: #siteWrapper [data-section-id="footer.sections"]
gab Posted October 15, 2023 Author Posted October 15, 2023 On 10/12/2023 at 10:45 AM, tuanphan said: Try changing this ID #siteWrapper [data-section-id="650d5074e0ed013d7b087264"] to footer.sections it doesn't work 😞
Web_Solutions Posted October 15, 2023 Posted October 15, 2023 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%; }}} } Ainul 1 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.
gab Posted October 16, 2023 Author Posted October 16, 2023 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
tuanphan Posted October 18, 2023 Posted October 18, 2023 On 10/14/2023 at 11:14 PM, gab said: like this?: #siteWrapper [data-section-id="footer.sections"] no replacing #siteWrapper [data-section-id="650d5074e0ed013d7b087264"] with footer.sections 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!)
gab Posted November 9, 2023 Author Posted November 9, 2023 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
gab Posted November 9, 2023 Author Posted November 9, 2023 On 10/18/2023 at 4:45 AM, tuanphan said: no replacing #siteWrapper [data-section-id="650d5074e0ed013d7b087264"] with footer.sections it doesn't work
Web_Solutions Posted November 9, 2023 Posted November 9, 2023 2 hours ago, gab said: it doesn't work You have added this code. Please remove it. #page { z-index: 9; } 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.
gab Posted November 10, 2023 Author Posted November 10, 2023 21 hours ago, Web_Solutions said: You have added this code. Please remove it. #page { z-index: 9; } thank you, but I cannot find that code you tell me to remve, where are you seeing it?
Web_Solutions Posted November 10, 2023 Posted November 10, 2023 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.
gab Posted November 10, 2023 Author Posted November 10, 2023 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%; }}} }
Solution Web_Solutions Posted November 10, 2023 Solution Posted November 10, 2023 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; } Kobir 1 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.
gab Posted November 11, 2023 Author Posted November 11, 2023 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?
Web_Solutions Posted November 11, 2023 Posted November 11, 2023 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.
gab Posted November 13, 2023 Author Posted November 13, 2023 On 11/11/2023 at 4:48 PM, Web_Solutions said: You can learn about it here https://www.w3schools.com/cssref/pr_pos_z-index.php thank you!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment