Jump to content

Adjust IMAGE CARD for smaller screens

Recommended Posts

Hi - I am want to customize the IMAGE CARDS to build a 4 item infographic. 

I've managed to adjust the layout for the desktop view with the code below, but cannot figure how to adjust for smaller screens.  

Can someone please shed light?

I've added reference photos below.

Site URL: https://lustrelove.squarespace.com/
Pwd: boldbab&

 

<style>
  @media screen and (min-width:768px){
  .design-layout-card .intrinsic {
    width: 20% !important;
}
  }
</style>

<style>
  @media screen and (min-width:768px) {
  .design-layout-card figcaption.image-card-wrapper {
    width: 70% !important;
}
  }
</style>

 

This is what it looks on desktop:

image.thumb.png.1f84be2ac4ee0e784d0f0ce50b2f7052.png

 

And this is what happens on tablet/mobile - I want image and text to display side by side:

image.thumb.png.531a2236ee5b328bb9405409abbaf296.png

 

 

Link to comment
  • Replies 1
  • Views 339
  • Created
  • Last Reply
On 3/24/2021 at 4:09 AM, JujuG said:

Hi - I am want to customize the IMAGE CARDS to build a 4 item infographic. 

I've managed to adjust the layout for the desktop view with the code below, but cannot figure how to adjust for smaller screens.  

Can someone please shed light?

I've added reference photos below.

Site URL: https://lustrelove.squarespace.com/
Pwd: boldbab&

 


<style>
  @media screen and (min-width:768px){
  .design-layout-card .intrinsic {
    width: 20% !important;
}
  }
</style>

<style>
  @media screen and (min-width:768px) {
  .design-layout-card figcaption.image-card-wrapper {
    width: 70% !important;
}
  }
</style>

 

This is what it looks on desktop:

image.thumb.png.1f84be2ac4ee0e784d0f0ce50b2f7052.png

 

And this is what happens on tablet/mobile - I want image and text to display side by side:

image.thumb.png.531a2236ee5b328bb9405409abbaf296.png

 

 

Which is the page url contains these images

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.