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

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;
}

 

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

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

You solved them, congrat

image.thumb.png.59eb9a51b3a830247114d563cf429429.png

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.