hotapplecider Posted March 21, 2023 Share Posted March 21, 2023 Hello, I'm trying to get a fixed, full-width image onto my landing page. I added the CSS for the background image, but I can't make the page section's background transparent to show the image. Any help would be greatly appreciated! cloverkate.com This is the code I currently have injected in the page header: <style> .header, #footer-sections {display:none!important} /* homepage background */ #page .page-section { background: transparent!important } #page .page-section .section-background { background: transparent !important; } body::before { background-image:url(https://static1.squarespace.com/static/61cf79abb29d4211ca17caac/t/6419e5b80345d51569c4466b/1679418808939/zhijian-dai-LeJsiKbPElY-unsplash.jpg); background-position: center; background-repeat: no-repeat; background-size: cover; content: ''; height: 100%; position: absolute; left: 0; top: 0; width: 100%; } </style> Link to comment
tuanphan Posted March 25, 2023 Share Posted March 25, 2023 Change this line #page .page-section .section-background { background: transparent !important; } to this #page .page-section .section-background, .section-border, .section-divider { background: transparent !important; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment