lildarkartz Posted September 27, 2022 Share Posted September 27, 2022 Site URL: https://www.lildarkartz.com/ Can an accordion menu open upwards, towards the top of the site? Link to comment
Ziggy Posted September 27, 2022 Share Posted September 27, 2022 No I don't believe it's possible to do that, what are you trying to achieve? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
joseph81 Posted September 27, 2022 Share Posted September 27, 2022 You can't do it from the settings but you could workaround the problem with some custom CSS. .accordion-item { display: flex; flex-direction: column; h4 { order:1; } } But then some other issues arrise, like where will the divider be when you open the accordion item and should it scroll up to the descriptions top when you open one item? Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. Link to comment
lildarkartz Posted September 27, 2022 Author Share Posted September 27, 2022 5 hours ago, joseph81 said: You can't do it from the settings but you could workaround the problem with some custom CSS. .accordion-item { display: flex; flex-direction: column; h4 { order:1; } } But then some other issues arrise, like where will the divider be when you open the accordion item and should it scroll up to the descriptions top when you open one item? I could not get that to work but thank you so much, maybe I was adding it wrong. Here is a picture, I basically want the accordion items to go up and not make the website longer each time it is opened. Link to comment
joseph81 Posted September 27, 2022 Share Posted September 27, 2022 It did not work because you have h2 tags instead of h4. Try this code. .accordion-item { display: flex; flex-direction: column; h2 { order:1; } } Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. Link to comment
lildarkartz Posted September 27, 2022 Author Share Posted September 27, 2022 29 minutes ago, joseph81 said: It did not work because you have h2 tags instead of h4. Try this code. .accordion-item { display: flex; flex-direction: column; h2 { order:1; } } oh, ok yes that work but it shoves the about done now, it there any way to make it so that does not happen? or it overlaps other things? Link to comment
joseph81 Posted September 27, 2022 Share Posted September 27, 2022 (edited) .This could do the trick, you can customize even more, how to look, spacing etc. .accordion-item__dropdown { position: absolute; bottom: 100%; left: 0; right: 0; margin: 0 auto; background: #fff; } .footer-sections { z-index: 12; } Edited September 27, 2022 by joseph81 Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. Link to comment
lildarkartz Posted September 27, 2022 Author Share Posted September 27, 2022 oh wow, that looks super cool thank you so much, last question for that can I make it so it works with hover and not click? Link to comment
joseph81 Posted September 27, 2022 Share Posted September 27, 2022 .accordion-item:hover .accordion-item__dropdown { display: block; } footer .accordion-item:before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; } Jozsef Kerekes - Front-end developer and Squarespace enthusiast My Blog: https://ui-workarounds.comIf you like my answer, please give me an upvote/like. Highly appreciated. 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