Jump to content

Vertical Align Text Boxes

Recommended Posts

Site URL: https://iris-dandelion-4xwe.squarespace.com/roma-black-technical-1

Hi,

I'm trying to set up some simple Text boxes that I eventually want to look like the attached.

But I cannot work it out for the life of me i have got them to the same size by using

#collection-5fae540116947a58fecef4e8
#block-yui_3_17_2_1_1605367992259_22516,
#block-yui_3_17_2_1_1605367992259_18966,
#block-yui_3_17_2_1_1605367992259_17670 {
  min-height: 128px;
}

But no idea how to make the text vertically centered.

Ths site url is https://iris-dandelion-4xwe.squarespace.com/roma-black-technical-1

Password: 123

Any help would be so much appreciated,

Thanks


Dan

Screenshot 2020-11-14 at 16.07.47.png

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

You can use flex display

image.thumb.png.4a1efa64aa6d8eb52cea0f3c2ec42cd9.png

#collection-5fae540116947a58fecef4e8
#block-yui_3_17_2_1_1605367992259_22516,
#block-yui_3_17_2_1_1605367992259_18966,
#block-yui_3_17_2_1_1605367992259_17670 {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
13 minutes ago, bangank36 said:

You can use flex display

image.thumb.png.4a1efa64aa6d8eb52cea0f3c2ec42cd9.png


#collection-5fae540116947a58fecef4e8
#block-yui_3_17_2_1_1605367992259_22516,
#block-yui_3_17_2_1_1605367992259_18966,
#block-yui_3_17_2_1_1605367992259_17670 {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

 

Thank you @bangank36 I have never used flex but seen so much posted about it, I'd love to learn more about it, If you know of any resources available to self teach that would be great! Many thanks for your reply!! :)

Link to comment

I usually learn from w3c school

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

You solved them, congrat

image.thumb.png.59eb9a51b3a830247114d563cf429429.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.