Jump to content

How do I get 3 buttons in header to stack vertically instead of side by side?

Go to solution Solved by tuanphan,

Recommended Posts

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
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
44 minutes ago, MarLo56 said:

Yes! Exactly!

Change these line

 -ms-flex-direction: row;
    flex-direction: row;


 -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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.