Jump to content

Is there a way to stack individual primary navigation titles on two lines?

Recommended Posts

  • 2 weeks later...
  • Replies 1
  • Views 602
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 2/10/2022 at 2:52 AM, jadeeleanor said:

Site URL: https://www.jadeeleanor.com/

 

Hiya, 

I have a couple of double worded navigation titles that I'd like to stack on two lines - "Wedding Photography' and 'Brand Photography' and I'd like to stack them on two lines so my navigation title/menu isn't too long on desktop.

Is there a way to do that?

Thanks so much!

Add to Design > Custom CSS

nav.Header-nav.Header-nav--primary>div>span:nth-child(2):before {
    content: "Wedding";
    font-size: 13px;
    text-align: center;
    display: block;
}
nav.Header-nav.Header-nav--primary>div>span:nth-child(3):before {
    content: "Brand";
    font-size: 13px;
    text-align: center;
    display: block;
}
nav.Header-nav.Header-nav--primary>div>span:nth-child(2):after, nav.Header-nav.Header-nav--primary>div>span:nth-child(3):after {
    content: "Photography";
    display: block;
    font-size: 13px;
}
nav.Header-nav.Header-nav--primary>div>span:nth-child(2), nav.Header-nav.Header-nav--primary>div>span:nth-child(3) {
    font-size: 0;
}

 

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

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.