Jump to content

Css for changing color of last card item

Go to solution Solved by creedon,

Recommended Posts

  • Replies 5
  • Views 435
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add the following to Design > Custom CSS.

.user-items-list-simple[data-section-id="62b0b053a38c096cf2f2b143"] .list-item:last-child {

  background-color : red;
  
  }

.user-items-list-simple[data-section-id="62b0b053a38c096cf2f2b143"] .list-item:last-child .list-item-content__button.sqs-block-button-element.sqs-block-button-element--medium.sqs-button-element--primary {

  background-color : green;
  color : blue;
  
  }

You'll need to refine it to achieve what effect you want.

Let us know how it goes.

Edited by creedon
version 2

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Now what if I wanted to change the color of that button? and Text? 

 

I tried this

.user-items-list-simple[data-section-id="62b0b053a38c096cf2f2b143"] .list-item-content__button {
  
  background-color: #fff;
}

 

Didnt work -- thank you

Link to comment
  • Solution
Quote

Now what if I wanted to change the color of that button? and Text?

I have updated my post.

I suggest not using !important unless absolutely necessary. I didn't need it when testing the code. Using it when not needed can cause confusion and maintenance issues down the road.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.