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
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.