Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Css for changing color of last card item


Go to solution Solved by creedon,

Recommended Posts

  • Replies 5
  • 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 best , and see my profile. Thanks for your support!

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 best , and see my profile. Thanks for your support!

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...