Guest Posted February 16, 2021 Share Posted February 16, 2021 (edited) Site URL: https://www.altairdev.top/ I want to add a wavy border to my footer, the code I am trying to use is But whenever I use it the Footer just disappears #footer-sections { background: black; overflow: visible; background: hsl(204, 16%, 65%); background-size: 105% auto; background-image: url("https://auxetite-cdn.sirv.com/wavy-blurple-by-nouridio.svg") !important; background-color: black; content: ''; width: 100%; height: 25%; bottom: 0; left: 0; position: absolute; Edited February 16, 2021 by MareksNo added categories Link to comment
tuanphan Posted February 18, 2021 Share Posted February 18, 2021 Try new code, replace with your image url footer.sections {position: relative;} footer.sections:before { content: ""; display: block; background: black; overflow: visible; background: hsl(204, 16%, 65%); background-size: 105% auto; background-image: url(https://cdn.pixabay.com/photo/2020/12/10/10/17/jasper-national-park-5819878__340.jpg); background-color: transparent; content: ''; width: 100%; height: 25px; top: 0; left: 0; position: absolute; z-index: 999; } 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
LemonstrikeCreativeStudios Posted January 25 Share Posted January 25 @tuanphan Hey there! Found this thread while searching for an answer. I can't seem to get this to work for 7.1. I'd love to use an image as a top border for my client's footer. Any insight or guidance you can provide would be great. TIA! Site: https://schulz-celebrity-golf-classic.squarespace.com PW: snoopy Image I'd like to use: https://images.squarespace-cdn.com/content/6554f93572c370332e59a9a0/0076b61b-a133-4f36-b2e7-ad8496b62727/peanuts-grass-100px.png?content-type=image%2Fpng Link to comment
jpeter Posted January 25 Share Posted January 25 @LemonstrikeCreativeStudios For your site, you can use the following CSS: /* Ensure fixed header is above everyhting */ #header { z-index: 20 } /* Add image to the top of footer section */ #footer-sections { position: relative; z-index: 10; } #footer-sections:before { content: ''; display: block; background-size: cover; background-image: url(https://images.squarespace-cdn.com/content/6554f93572c370332e59a9a0/0076b61b-a133-4f36-b2e7-ad8496b62727/peanuts-grass-100px.png?content-type=image%2Fpng); width: 100%; height: 40px; top: -20px; left: 0; position: absolute; z-index: 10; } LemonstrikeCreativeStudios and tuanphan 1 1 Full stack developer who loves helping people out with anything web related. If you'd like to support me, buy me a coffee! Link to comment
LemonstrikeCreativeStudios Posted January 25 Share Posted January 25 4 minutes ago, jpeter said: @LemonstrikeCreativeStudios For your site, you can use the following CSS: /* Ensure fixed header is above everyhting */ #header { z-index: 20 } /* Add image to the top of footer section */ #footer-sections { position: relative; z-index: 10; } #footer-sections:before { content: ''; display: block; background-size: cover; background-image: url(https://images.squarespace-cdn.com/content/6554f93572c370332e59a9a0/0076b61b-a133-4f36-b2e7-ad8496b62727/peanuts-grass-100px.png?content-type=image%2Fpng); width: 100%; height: 40px; top: -20px; left: 0; position: absolute; z-index: 10; } @jpeter THANK YOU! I think caching is preventing me from seeing it in my working browser, but I can see it in incognito and it looks fantastic. Thanks again for the assist 🙂 jpeter 1 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