Jump to content

Navigation Bar Customization - Page title on two lines

Recommended Posts

  • Replies 6
  • Views 949
  • Created
  • Last Reply
Posted
48 minutes ago, bmceuen said:

Site URL: https://onbrand.shop/

Hey all - just wondering if it's possible to make one of the pages on your nav bar have it's title appear across two lines?

Is it the result you want to achieve?

image.thumb.png.cb54ebb45ae84b69111a19d9a324cbf3.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Nope - looking to have the single item "Text a Personal Stylist" on two lines - the rest of them on one line.

 

Hope that makes sense!

Posted
3 minutes ago, bmceuen said:

Nope - looking to have the single item "Text a Personal Stylist" on two lines - the rest of them on one line.

 

Hope that makes sense!

Try

.header-nav-item:first-child {
  width: 100%;
}

Let me know if it works properly on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Ah I see. That's not quite it. So I'm looking to create something like this

"Text A<br>Personal Stylist"     "Blog"     "FAQs"     "About"     "Log In"     "BUTTON" 

Posted
32 minutes ago, bmceuen said:

Ah I see. That's not quite it. So I'm looking to create something like this

"Text A<br>Personal Stylist"     "Blog"     "FAQs"     "About"     "Log In"     "BUTTON" 

You can try the following Css code

.header-nav-item:first-child {
	width: 100%;
	position: relative;
}

.header-nav-item:first-child  a {
	display: flex;
	visibility: hidden;
	width: 0;
	position: static;
}

.header-nav-item:first-child a:before {
	position: absolute;
	right: 0;
	content: 'Text A';
	color: #294f6b;
	visibility: visible !important;
	width: 50%;
	color: inherit;
	font-size: inherit;
}

.header-nav-item:first-child a:after {
	content: 'Personal Stylist';
	color: #294f6b;
	visibility: visible !important;
	width: 50%;
	position: absolute;
	bottom: -33px;
	right: 0;
	color: inherit;
	font-size: inherit;
}

.header-nav-item:last-child {
	margin-right: 170px;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.