Jump to content

[Share] Make each navigation option text a different color

Recommended Posts

To make each navigation option text a different color, you can follow this.

If you can't make it work, you can share site url, I will check again.

#1. First, you need to know this

image.png.ec18fa2dedfda292bcc4ffba21a7d477.png

#2. Next, use this code to Custom CSS box

div.header-nav-item:nth-child(1)>a,  div.container.header-menu-nav-item:nth-child(1) * {
    color: green !important;
}
div.header-nav-item:nth-child(2)>a, div.container.header-menu-nav-item:nth-child(2) * {
    color: red !important;
}
div.header-nav-item:nth-child(3)>a,  div.container.header-menu-nav-item:nth-child(3) * {
    color: #f1f !important;
}
div.header-nav-item:nth-child(4)>a,  div.container.header-menu-nav-item:nth-child(4) * {
    color: brown !important;
}
div.header-nav-item:nth-child(5)>a,  div.container.header-menu-nav-item:nth-child(5) * {
    color: #fff !important;
}

image.thumb.png.7d43bbb8c33d6b797635ef369bad0721.png

Result

image.png.73a6e06b3db75d0758ca01cf89ca2145.png

image.png.1b26204b89aae2f1967bb66409f7abf9.png

#3. With Dropdown Items, use CSS code like this

div.header-nav-item:nth-child(5)>div>div:nth-child(1) * {
    color: red;
}
div.header-nav-item:nth-child(5)>div>div:nth-child(2) * {
    color: green;
}
div.header-nav-item:nth-child(5)>div>div:nth-child(3) * {
    color: white;
}
div.header-nav-item:nth-child(5)>div>div:nth-child(4) * {
    color: black;
}
div.header-nav-item:nth-child(5)>div>div:nth-child(5) * {
    color: brown;
}

image.png.501868076f7156729bdecc476807671b.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
  • Replies 0
  • Views 367
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.