Jump to content

Unordered List in Image Card

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://carrot-bronze-bld8.squarespace.com/buying-guidelines

I'm trying to create an unordered list within an image card. I've tried the code below but it did not work. I'm using Brine 7.0. Page with the bulleted list is at https://carrot-bronze-bld8.squarespace.com/buying-guidelines.  Thanks!

/* Unordered list image card */
.design-layout-card .image-subtitle p:nth-child(n+2) strong:before {
    content: "•";
    padding-right: 5px;
}
.design-layout-card .image-subtitle p:nth-child(n+2) strong {
    font-weight: normal !important;
    display: flex;
}
.design-layout-card .image-subtitle p:nth-child(n+2) br {
    display: none;
}

 

Link to comment
  • Solution

#1. It is .design-layout-collage, not .design-layout-card

#2. The subtitle has 1 p only, so nth-child(n+2) won't work, try nth-child(n+1) or :first-child or nth-child(1)

.design-layout-collage .image-subtitle p:nth-child(n+1) strong:before {
    content: "•";
    padding-right: 5px;
    display: inline-block;
}

.design-layout-collage .image-subtitle p:nth-child(n+1) strong {
    font-weight: normal !important;
    display: flex
}

 

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
  • 1 year later...

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.