ErinMurphy Posted August 21, 2023 Share Posted August 21, 2023 Hello. I am using the code below to move a footer section above my page header. That part worked great. Problem 1: This section contains an accordion menu, though, and the section does not expand when the accordion menu is opened. (See screenshot.) Problem 2: The section does not display fully in mobile view. (See screenshot.) Thank you for your help! Current code: /*Move footer section to header */ #footer-sections .page-section:nth-child(1) { position: fixed!important; top: 0!important; z-index:9 9!important; width: 100%!important; height: auto!important; } header,#page{ margin-top: 4rem!important } Link to comment
Lesum Posted August 21, 2023 Share Posted August 21, 2023 @ErinMurphy Would it be possible to share your site URL? I can take a look. Thanks! If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
ErinMurphy Posted August 21, 2023 Author Share Posted August 21, 2023 Sure @Lesum! Thanks! It's still a draft: https://chicagoparentprogram.squarespace.com/ Password: fireworks23 Link to comment
ErinMurphy Posted August 22, 2023 Author Share Posted August 22, 2023 Any luck, @Lesum? @tuanphan? Your code has saved me so many times! Hopeful you might know what to do here. Thank you! Link to comment
Solution tuanphan Posted August 24, 2023 Solution Share Posted August 24, 2023 (edited) #1. #2. Don't remove any code in your current code. Add this CSS code /* Make header accordion works */ footer#footer-sections { z-index: 999999 !important; } Edited August 24, 2023 by tuanphan 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
ErinMurphy Posted August 25, 2023 Author Share Posted August 25, 2023 Thank you so so much @tuanphan. You are my hero. tuanphan 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