Jump to content

Different colors for different words in CSS

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 2
  • Views 499
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

You can add this to Design > Custom CSS

a.portfolio-hover-item:nth-child(1) span {
    color: blue;
a.portfolio-hover-item:nth-child(2) span {
    color: brown;
a.portfolio-hover-item:nth-child(3) span {
    color: yellow;
a.portfolio-hover-item:nth-child(4) span {
    color: red;


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.