Jump to content

Subtitle font highlights in image card -- spaces disappear

Recommended Posts

Site URL: https://www.sundayschoolwine.com/membership

Hi, I put highlights behind my subtitle text in these image cards using this code: 

.image-subtitle p {
background: linear-gradient(180deg, rgba(255,255,255,0) 15%, #FCFBEA 40%);
display: inline;
  color: black;
  font-size: 22px !important;
}

Works fine, except I had the text separated with a space (see second photo w/o highlight behind text). But when I enter the highlight coding, the space disappears. Help!

 

Screen Shot 2021-06-01 at 11.19.59 AM.png

Screen Shot 2021-06-01 at 11.22.00 AM.png

Link to comment
  • Replies 4
  • Views 435
  • Created
  • Last Reply

Top Posters In This Topic

On 6/2/2021 at 3:53 PM, tuanphan said:

Add to Custom CSS


body:not(.image-block-card-dynamic-font-sizing) .sqs-block-image .design-layout-card .image-title p {
    display: inline-block !important;
}

 

@tuanphan Didn't do it. Here's what I have and still looks the same as the first photo.

 

#membership-intro .image-subtitle p {
background: linear-gradient(180deg, rgba(255,255,255,0) 15%, #FCFBEA 40%);
display: inline;
  color: black;
  font-size: 22px !important;
}
body:not(.image-block-card-dynamic-font-sizing) .sqs-block-image .design-layout-card .image-title p {
    display: inline-block !important;
}

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.