StephV Posted March 24, 2023 Share Posted March 24, 2023 (edited) I'm using the Avenue template on 7.0, I need to keep this template for its grid index styling, but I want to add a call to action button to the header. I've tried some code snippets I found in this forum and nothing has worked. URL: https://www.stephanievecellio.com Ideally would like the outlined pill style and solid on hover. Thanks for any help!! Edited March 24, 2023 by StephV added website Link to comment
StephV Posted March 24, 2023 Author Share Posted March 24, 2023 I got this code to work: .main-nav li:last-child a { background-color: transparent; border-width: 2px; border-radius: 300px; border-style: solid; padding: 13px 26px !important; } But it moves the button out of center and I can't figure out how to get it in line with the rest of the header. Link to comment
StephV Posted March 24, 2023 Author Share Posted March 24, 2023 It had something to do with the padding, so adjusting the top margin worked. It messed with the mobile menu so added more bottom margin too. .main-nav>ul>li:last-child a { background-color: transparent; border-style: solid; border-width: 2px; border-radius: 300px; padding: 13px 26px !important; margin-top: 22px; margin-bottom: 22px; } Can anyone help me access the mobile nav though? This is what it does to mobile, which is fine but not ideal. Link to comment
tuanphan Posted March 29, 2023 Share Posted March 29, 2023 You want to disable button on mobile or? 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
StephV Posted April 10, 2023 Author Share Posted April 10, 2023 Yeah ideally I would like to disable the button on mobile. Link to comment
tuanphan Posted April 13, 2023 Share Posted April 13, 2023 Change this class name .main-nav>ul>li:last-child a to this .main-nav:not(.mobileNav)>ul>li:last-child a 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