Jump to content

Help setting equal summary block height

Recommended Posts

I am trying to create a summary block where all the sections are the same height. I've gotten that to work, but on large screens, there's a ton of space at the bottom. Is there a better way to do this? 

I also set the code not to apply on mobile, but if you shrink a browser window down, it will wrap, which I'd prefer not to happen.

Website is: https://pedl.tech/home-1

Password: PEDL

@media only screen and (min-width:650px){ .summary-item{height:16vh;}}

image.thumb.png.ee032ca493dca24b2c4e9b124df5f0e9.png

Link to comment
  • Replies 6
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

First, remove this CSS code

#block-yui_3_17_2_1_1709589146043_109093 {
    font-weight: 600;
    background: #fff;
}

Next, use this CSS code

#block-yui_3_17_2_1_1709589146043_109093 .summary-item {
    background-color: #fff;
    font-weight: 600;
}

image.thumb.png.d032101180b2c19da185258c1e53ccd9.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!)

Link to comment
On 3/15/2024 at 8:07 AM, Ottan said:

Wonderful! Do you know if there's a way to get rid of the extra white space at the bottom on large screens? If not, I'll just deal with it. 

image.thumb.png.233394b9fbd6a480c6891f7439f3248d.png

You can use some code like this under, to adjust it on large screen.

@media screen and (min-width:2500px) {
    #block-yui_3_17_2_1_1709589146043_109093 .summary-item {
        height: 11vh !important;
    }
}

 

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

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.