Jump to content

CSS Code for Cover Page Link Alignment

Recommended Posts

Posted

Site URL: https://simonpineda.com

Hello –– working on a cover to act as a landing page that links to three or four content pages. When I set it up, the links default to a single row, but I'd like them to be stacked vertically and centered. Can anyone explain how I can make this happen or provide the necessary CSS? Thank you!

Screenshot 2024-10-07 at 10.51.22 PM.png

  • Replies 3
  • Views 442
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

@stpineda Give this a try:

// VERTICAL ALIGN COVER PAGE LINKS
.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] li {
  display: block;
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li:first-of-type a {
  padding-left: 0.6em;
}

.sqs-slide-wrapper[data-slide-type="cover-page"] [data-slice-type="navigation"] ul li:last-of-type a {
  padding-right: 0.6em;
}

Which looks like this:

image.thumb.png.8b8a53c6b8db12e49ee4e223573e3d6d.png

Instruction: How to set a site-wide password

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

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.