DominiqueFM Posted April 2, 2023 Posted April 2, 2023 I'm trying to get the banner image on my site become static on the background while the other stuff sits on top of it and moves. Similar to the effect on this page: https://www.takemeoutofoffice.com/ But no matter what code I've tried, I can't seem to figure it out! Would love any insight or code or links to other threads that people have had success with. thank you!!
DominiqueFM Posted April 2, 2023 Author Posted April 2, 2023 I am trying to figure out how to get part of an image to hide behind the bottom of a section break - similar to the top iphone image on the banner of this page: https://www.takemeoutofoffice.com/ I've tried about a dozen different attempts at CSS but none have worked. Would love any wisdom or code blocks or links to other threads that people have had success with using. Thank you!!
Solution tuanphan Posted April 5, 2023 Solution Posted April 5, 2023 We can use CSS background-attachment: fixed to achieve this. However it won't work on iOS. If you still want to do, please share link to your site, we can check 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment