Jump to content

Help needed to center links on page of mobile website

Recommended Posts

  • Replies 4
  • Views 724
  • Created
  • Last Reply
On 5/5/2021 at 9:36 AM, wkonitzer said:

@tuanphan on mobile top right there are 3 horizontal lines, that clicked bring up new page with icons at the bottom. I believe it's called the "overlay menu" on the mobile design.

Ah okay, I thought desktop menu.

Add to Design > Custom CSS

/* Mobile menu icons */
.header-menu-nav-folder.header-menu-nav-folder--active {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.header-menu-actions {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}
.header-menu-nav-folder-content {
    display: none;
}

If you want 2 columns, just change number 4 to 2
image.thumb.png.3ee4bee1cabe6ace6d6b2269a99b0b81.png

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
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.