I'm trying to add a second button in a vertical stack (underneath APPLY NOW) in our header menu. I can use JS to create a new div similar to the existing button:
<divclass="header-actions header-actions--right"><divclass="showOnMobile"></div><divclass="showOnDesktop"></div><divclass="header-actions-action header-actions-action--cta"data-animation-role="header-element"><aclass="btn btn--border theme-btn--primary-inverse"href="/teach-now-application-form-redirection"target="_blank">
APPLY NOW
</a></div><!-- add second button here --></div>
But that gets styled as side-by-side horizontal buttons. If I take off the "display: inline-flex" property on that parent div (applied through the 'header-actions' class), then they're displayed in a vertical group and I can add a little margin and it looks alright.
But... that's a good bit of hacking and doesn't seem to address mobile. I can probably hack out a similar fix to force-add a button on mobile, but maybe there's a better way?
Question
gmgarrison 1
Site URL: https://moreland.edu
Hi all,
I'm trying to add a second button in a vertical stack (underneath APPLY NOW) in our header menu. I can use JS to create a new div similar to the existing button:
I can insert that into the parent div:
But that gets styled as side-by-side horizontal buttons. If I take off the "display: inline-flex" property on that parent div (applied through the 'header-actions' class), then they're displayed in a vertical group and I can add a little margin and it looks alright.
But... that's a good bit of hacking and doesn't seem to address mobile. I can probably hack out a similar fix to force-add a button on mobile, but maybe there's a better way?
Does anyone have a better approach?
Link to post
Top Posters For This Question
2
1
Popular Days
Oct 23
1
Oct 24
1
Oct 25
1
Top Posters For This Question
gmgarrison 2 posts
tcp13 1 post
Popular Days
Oct 23 2020
1 post
Oct 24 2020
1 post
Oct 25 2020
1 post
Popular Posts
gmgarrison
Thanks a lot for this. I can definitely work with this. Appreciate it!!!
Posted Images
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment