Jump to content

Looking to create responsive equal height rows

Recommended Posts

Site URL: https://marketingrecruitment.digital/services

Hey all,

I'm looking to create a responsive grid layout for a services section on my website.

Right now it looks pretty good, however, I'd like to be able to adjust two things:

1) Keep the height of each image block in the row the same height regardless of the amount of text.

2) As screen size shrinks, instead of going from 3 columns to one, it should go from 3 to 2 to 1.

Here's the existing code I have for the image blocks.

section[data-section-id="6166c23546b0db43ac0138d0"] .sqs-block-image {
  background-color: white;
  border-radius:10px;
  box-sizing: border-box;
  margin: 5%;
  padding: 30px;
}

@tuanphan I've been seeing your name everywhere. If you have any suggestions I'd love to hear them. 

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

2 hours ago, andrew32516 said:

Site URL: https://marketingrecruitment.digital/services

Hey all,

I'm looking to create a responsive grid layout for a services section on my website.

Right now it looks pretty good, however, I'd like to be able to adjust two things:

1) Keep the height of each image block in the row the same height regardless of the amount of text.

2) As screen size shrinks, instead of going from 3 columns to one, it should go from 3 to 2 to 1.

Here's the existing code I have for the image blocks.

section[data-section-id="6166c23546b0db43ac0138d0"] .sqs-block-image {
  background-color: white;
  border-radius:10px;
  box-sizing: border-box;
  margin: 5%;
  padding: 30px;
}

@tuanphan I've been seeing your name everywhere. If you have any suggestions I'd love to hear them. 

1. My solution is setting the paragraph in each image block in one line only. Therefore, the height is equal for all item (if your headings are not too long)

2. I suggest using breakpoint to set width of each image block in grid.

Here is my Custom Css

section[data-section-id="6166c23546b0db43ac0138d0"]
  .image-block
  .image-subtitle
  p {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  section[data-section-id="6166c23546b0db43ac0138d0"]
    .content-wrapper
    .sqs-layout
    > .row:last-child
    > .col {
    width: 50%;
  }
}

Support me by pressing 👍 if this useful for you

Edited by bangank36

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

Here is my result

Still looking for better solution from other forum member

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.