abi123 Posted January 22, 2021 Share Posted January 22, 2021 (edited) Site URL: https://www.migrationandmobility.ca/ Hi! I am trying to add a photo like a banner above my site header in 7.1 but can't figure out how to do it in CSS. I'd like it to be consistent across my site like the site header. password to see the site: mobility Edited January 22, 2021 by abi123 Link to comment
tuanphan Posted January 23, 2021 Share Posted January 23, 2021 Add to Home > Design > Custom CSS header#header:before { background-image: url(https://cdn.pixabay.com/photo/2020/12/03/16/58/sunset-5801050__340.jpg); background-size: cover; background-repeat: no-repeat; display: block; content: ""; width: 100%; height: 300px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
indy Posted January 12, 2022 Share Posted January 12, 2022 Exactly what my client wants. I added this code and the image seems to appear above as the page is loading, and then is moved behind the header. Any insight? Here is a screen grab. Link to comment
indy Posted January 12, 2022 Share Posted January 12, 2022 Never mind. I didn't go into incognito and log in that way.. It worked. Thanks! I share that in case someone has the same issue. tuanphan 1 Link to comment
teyahnp Posted April 2 Share Posted April 2 This code works. (NOTE: only on homepage!). /* Add a banner */ body.homepage div#siteWrapper:before { content: ""; background-image: url(Place here); background-size: cover; background-repeat: no-repeat; background-position: center; display: block; width: 100%; height: 900px; } /* Add sticky header */ header#header { position: sticky !important; top: 0px; } 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