Jump to content

Image Card not adjusting to mobile version when I reduce screen size

Recommended Posts

  • Replies 5
  • Views 249
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* Stacked from 768px to 1024px */
@media screen and (min-width:768px) and (max-width:1024px) {
div#page-section-628d8a9bc73f3027778dd19f figure {
    flex-direction: column;
}
div#page-section-628d8a9bc73f3027778dd19f figure>* {
    width: 100% !important;
}
}

 

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

Thank you so much for your reply. This is working now, but on desktop when the screen is reduced in width there is very little space between the images and titles, is there code to increase this padding? Also the 1st and third people descriptions appear indented compared to the second one?

Any help is great appreciated,

 

Link to comment
On 6/4/2022 at 2:04 AM, BennyCorrigan said:

Thank you so much for your reply. This is working now, but on desktop when the screen is reduced in width there is very little space between the images and titles, is there code to increase this padding? Also the 1st and third people descriptions appear indented compared to the second one?

Any help is great appreciated,

 

Hi. Can you take a screenshot of problem?

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
On 6/18/2022 at 5:15 AM, geearias said:

@tuanphan For me, on this sites cards, the preview shows stacked, but not once I check on my iPhone. I tried this code and it didn't work as well. All of the cards are showing the screenshot attached.

https://www.packtraining.com/first-timers

Any help appreciated!

IMG_7CA7B98DB929-1.jpeg

Above code for tablet only. WIth mobile, you need to change this line

Quote
@media screen and (min-width:768px) and (max-width:1024px)

to this

Quote
@media screen and (max-width:768px)

 

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

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.