Jump to content

Consistent height for list items (row of boxes w text)

Recommended Posts

Site URL: https://www.mackenziearchitects.com

Hello! Wondering if there's any way to make list items a consistent height (see image below).  

Grey boxes with text sometimes are all one height,  sometimes not, depending on the screensize. This can make the design look wonky. 

I understand that part of this is bc the template is responsive - which is awesome - but curious if there's still any way to encourage a baseline height consistency...?

Thanks for any tips. 

M_A_C_K_E_N_Z_I_E___A_R_C_H_I_T_E_C_T_S_-_Senior_Living___Multifamily.png

Link to comment
  • Replies 7
  • Views 890
  • Created
  • Last Reply
On 8/26/2021 at 8:42 PM, Mirabile said:

Site URL: https://www.mackenziearchitects.com

Hello! Wondering if there's any way to make list items a consistent height (see image below).  

Grey boxes with text sometimes are all one height,  sometimes not, depending on the screensize. This can make the design look wonky. 

I understand that part of this is bc the template is responsive - which is awesome - but curious if there's still any way to encourage a baseline height consistency...?

Thanks for any tips. 

M_A_C_K_E_N_Z_I_E___A_R_C_H_I_T_E_C_T_S_-_Senior_Living___Multifamily.png

Add to Design > Custom CSS

/* equal list items height */
body.homepage .list-item-content {
    min-height: 290px;
}

@BlayneG87 Can you share link to your site? We can help easier

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
5 hours ago, BlayneG87 said:

@tuanphan Hi, it is on the Shop page.

Add to Shop Page Header (To open Shop Page Header > Hover Shop on Pages > Main Navigation > Click Gear Icon > Advanced)

<style>
  /*
  - This code will set min height for all elements
  - Depend the title/text, you can adjust these values
  */
  @media screen and (min-width:992px) {
  	/* list title */
    h2.list-item-content__title {
    min-height: 100px;
}
    /* list text */
    .list-item-content__description {
    min-height: 100px;
}
  }
</style>

 

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

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.