Jump to content

Center Collage Images on Mobile

Recommended Posts

Site URL: https://ellifischer.de/blog/lesemonat-august-2020

Hello, 

i have a small problem with the mobile view of the pictures "Collage".

I changed the order using the following code so that text comes first and then image.  I was able to center the title and subtitle - and also the image if it is on the left in the normal view. Only the images on the right are still centered on the right. Unfortunately I can't find a code to address. Can anyone help me?

@media (max-width: 640px){
  div .sqs-block-image .image-block-outer-wrapper.image-block-v2 {
    flex-direction: column-reverse !important;      
    display: flex !important;
    align-items: center;
  }
}

// Padding Between Text and Image //
@media screen and (max-width:640px) {
.sqs-block.image-block .image-caption-wrapper p {
 text-align: center !important;
}
}

@media (max-width: 640px){
.sqs-block-image .image-block-outer-wrapper.image-block-v2 .image-card {
    padding-bottom: 50px !important;
  padding-top: 30% !important;
  margin: 0 auto;
  }
}

 

Link to comment
  • Replies 3
  • Created
  • Last Reply
  • 3 months later...
  • 2 weeks later...
On 12/25/2020 at 5:07 AM, jillgraycen said:

 

@tuanphan I tried the code above and it didn't solve the issue, so I deleted it from my Custom CSS. Any suggestions for how to adjust so it looks better on mobile? See screenshots of web / mobile views attached. Thank you!

Screen Shot 2020-12-24 at 4.59.28 PM.png

Screen Shot 2020-12-24 at 4.59.48 PM.png

Can you share site url? We can help easier

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

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.