Jump to content

How do I make Custom Image Cards Responsive

Recommended Posts

Site URL: https://www.curtains2u.co.nz/curtains-new

I have these image cards which look great on desktop and mobile, but they look terible on tablet view.
Any thoughts how to fix this? 

<div class="sec-rev-data" 
          style="background-color:#ffffff;
  color:black;
  padding:40px;
  border-style: solid;
 border-width: 1px;
  border-color:#dedede;">
 <center><img src="https://static1.squarespace.com/static/5d1d5299ef1a470001944e7b/t/6192e994508e700542845f72/1637018006368/C2U_Block+Out.jpg" class="card-img-top" style="display:block;width:250px;height:250px;display:flex;"></center>
  <h3 style="color:black;">Block Out Curtains</h3>
  <p style="color:#A72A4B;font-size:0.8125rem;">Light control - Versatile - Bold </p>
  <p>For superior privacy, choose block out curtains. Beautiful and highly practical, block out curtains give you complete control over light levels and regulate room temperature. </p>
</div>

 

Screen Shot 2021-11-16 at 4.09.20 PM.png

Link to comment
On 11/16/2021 at 10:13 AM, S74 said:

Site URL: https://www.curtains2u.co.nz/curtains-new

I have these image cards which look great on desktop and mobile, but they look terible on tablet view.
Any thoughts how to fix this? 

<div class="sec-rev-data" 
          style="background-color:#ffffff;
  color:black;
  padding:40px;
  border-style: solid;
 border-width: 1px;
  border-color:#dedede;">
 <center><img src="https://static1.squarespace.com/static/5d1d5299ef1a470001944e7b/t/6192e994508e700542845f72/1637018006368/C2U_Block+Out.jpg" class="card-img-top" style="display:block;width:250px;height:250px;display:flex;"></center>
  <h3 style="color:black;">Block Out Curtains</h3>
  <p style="color:#A72A4B;font-size:0.8125rem;">Light control - Versatile - Bold </p>
  <p>For superior privacy, choose block out curtains. Beautiful and highly practical, block out curtains give you complete control over light levels and regulate room temperature. </p>
</div>

 

Screen Shot 2021-11-16 at 4.09.20 PM.png

Hi @S74,

You can try adding to Home > Design > Custom Css

@media only screen and (min-width: 768px) and (max-width: 991px) {
  #block-yui_3_17_2_1_1637011631448_32724 + .row > .col {
    width: 50% !important;
  }

  #block-yui_3_17_2_1_1637011631448_8487 + .row > .col .sec-rev-data {
    padding: 0 !important;
  }
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

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

My testing result

 

 

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

It ' good to know that @S74

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.