Jump to content

CSS to enforce same height for rows on a specific page

Recommended Posts

Posted

Site URL: https://www.interaction-ld.com/coaching_new

I am trying to add custom code to a specific page and specific blocks of 'lines' and 'text' so that they are the same height and look in line.  I found some code on another thread that I thought might be something to start from, but am unsure how to edit it for my page as it relates more to image blocks.  I also wondered if I just needed to add the 'flex' element. I want to be able to have the items in any order and always be the same height.

It's also possible that I will wart to target these same blocks with other custom code such as colours, text size, background colours etc, so it would be great if someone can help with how to target each element separately so I can do this.

The page is here: https://www.interaction-ld.com/coaching_new
Password: coaching

The blocks are the pink lines and the text underneath.

Thanks very much.

Laura

  • Replies 5
  • Views 1.6k
  • Created
  • Last Reply
Posted
On 4/6/2021 at 9:43 PM, interactionld said:

Yes, that's the ones thank you @tuanphan

I also see the site has problems

Site URL – https://www.interaction-ld.com/

1. (Tablet-Coaching_new) Not equal height

tablet-coaching_new-min.png

2. (Tablet-Homepage) Want to make all buttons same height & align center?

tablet-homepage-min.png

3. (Mobile-Overlay) The code appear here.

mobile-overlay-min.png

4. (Mobile-The Team) Huge white space

mobile-the-team-min.png

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!)

  • 1 month later...
Posted

Q2. Add to Design > Custom CSS

/* tablet issues */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1412381143917_19852 + .row .button-block a {
    min-height: 50px;
    vertical-align: middle;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
}
div#block-yui_3_17_2_1_1412381143917_19852+.row .button-block {
    padding: 2px;
}
}

 

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!)

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.