Jump to content

Center Text in Navigation

Recommended Posts

Site URL: https://marksantiagodesigns.com

Hello,

I was attempting to add an underline to the top navigation links, but I encountered to minor edits I haven't quite been able to make adjustments to.

I am currently using this CSS:

.nav-item.active {
    border-bottom: 2px solid currentColor;
}

However, the individual project pages do not have underlines and the text is not centered above the underlines. Is there any way to make this change to the individual navigation links?

Thank you!

website_navigation.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Use this CSS to insert underline

.nav-item.active span:after {
    content: "";
    display: block;
    background: white;
    height: 1px;
    width: 95%;
    margin-top: 10px;
}

 

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.