MarLo56 Posted June 26, 2023 Share Posted June 26, 2023 A couple of years ago, by searching the internet, I created 2 additional buttons to the header of this website by pasting code into Code Injection under Developer Tools<Settings and then adding the code below to CSS. At the time, I couldn't believe it actually worked. I'd now like the buttons to be stacked horizontally rather than side by side. When I change "horizontal" to "vertical" in the CSS code nothing happens. Can anyone help with this? I didn't include the code I pasted into Code Injection because I didn't see anything in it in regard to orientation of the buttons. /* begin add buttons to header */ .header-actions-action.header-actions-action--cta { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; grid-gap: 0.5em; gap: 0.5rem; } /* end add buttons to header */ Link to comment
MarLo56 Posted June 26, 2023 Author Share Posted June 26, 2023 The website is www.shermanlibrary.org Link to comment
tuanphan Posted June 27, 2023 Share Posted June 27, 2023 Stacked like this? 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
Solution tuanphan Posted June 27, 2023 Solution Share Posted June 27, 2023 44 minutes ago, MarLo56 said: Yes! Exactly! Change these line -ms-flex-direction: row; flex-direction: row; to -ms-flex-direction: column; flex-direction: column; 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
MarLo56 Posted June 30, 2023 Author Share Posted June 30, 2023 That worked perfectly! Thank you Tuan! 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