Jump to content

Text not centering with image on image card

Recommended Posts

Posted

Site URL: https://thebusybelle.me/services

I have two image cards on my services page in the same section. The settings on my site are to center the text with the image on image cards. In the first image (for Website Design), the setting works great and it looks as it should. On the second image (for Email Marketing), the text is not centered. I have tried adding a new section, playing with the settings, writing custom css code (see below), and about a dozen other troubleshooting steps, and nothing is working. It's driving me mad, ha!

 

I found this coding in this forum and added it in the custom css, but it didn't work and the syntax says there is a missing { so I'm not sure if I'm typing it in wrong.

div#page-section-5f4c32b10acc3a6197a55e82 .span-12>.row {
    display: flex;
    align-items: center;
}
}}

 

If anyone knows what I'm missing, I would appreciate your help! Thank you!

Screen Shot 2020-11-06 at 7.20.35 PM.png

  • Replies 3
  • Views 1.9k
  • Created
  • Last Reply
Posted
3 hours ago, thebusybelle said:

Site URL: https://thebusybelle.me/services

I have two image cards on my services page in the same section. The settings on my site are to center the text with the image on image cards. In the first image (for Website Design), the setting works great and it looks as it should. On the second image (for Email Marketing), the text is not centered. I have tried adding a new section, playing with the settings, writing custom css code (see below), and about a dozen other troubleshooting steps, and nothing is working. It's driving me mad, ha!

 

I found this coding in this forum and added it in the custom css, but it didn't work and the syntax says there is a missing { so I'm not sure if I'm typing it in wrong.

div#page-section-5f4c32b10acc3a6197a55e82 .span-12>.row {
    display: flex;
    align-items: center;
}
}}

 

If anyone knows what I'm missing, I would appreciate your help! Thank you!

Screen Shot 2020-11-06 at 7.20.35 PM.png

Let's try this

#block-yui_3_17_2_1_1604675298925_7088.sqs-block-image .intrinsic {
  	display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-justify-content: center;
    justify-content: center;
    min-height: 100%;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
On 11/6/2020 at 11:22 PM, bangank36 said:

Let's try this


#block-yui_3_17_2_1_1604675298925_7088.sqs-block-image .intrinsic {
  	display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-justify-content: center;
    justify-content: center;
    min-height: 100%;
}

 

@bangank36 thank you so much!! That worked! You rock!

Posted

@thebusybelle I see some small problems which you can improve.

1. (Tablet) Banner text is a bit narrow (services page)

You can add this to Design > Custom CSS to increase width

/* services banner width */
@media screen and (max-width:991px) and (min-width:768px) {
[data-section-id="5f4c32b10acc3a6197a55e80"] .content {
    width: 90% !important;
}
}

tablet-banner.png.0fec0bc2e92c3a8559bb806f3aa7953e.png

Similar on blog posts https://thebusybelle.me/blog/7-tasks-realtors-can-take-off-their-plates-right-now

Solve with this code

/* blog post width */
@media screen and (max-width:991px) and (min-width:768px) {
.blog-item-wrapper .blog-item-inner-wrapper {
    width: 90% !important;
}
}

blog-post.png.4123183867057e17fcea806a6bc4a1b5.png

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!)

Archived

This topic is now archived and is closed to further replies.

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