Jump to content

Question regarding using flex for equal-height text boxes in 7.1.

Recommended Posts

Site URL: https://iguana-copper-zhle.squarespace.com/what-we-do

Site password: scheffer

 

Hello! Hoping someone can help solve 2 things here:

1. Vertically center align the text in the gold boxes. (Nothing seems to be working!)

2. Remove the gold border from the last box in the section, which is a spacer.

 

Here is the current code:

 

[data-section-id="602ed814a1a8ab1c15d4379f"] .sqs-row {
display:flex!important;
  flex-wrap:wrap!important;
    justify-content: center!important;
}
[data-section-id="602ed814a1a8ab1c15d4379f"] .sqs-col-6 {
  border:solid 2px #b89057!important;
  margin:20px!important;
  flex: 1 330!important;
  padding:10px!important;
  justify-content: center!important;

 

Any suggestions greatly appreciated!

Link to comment
  • Replies 1
  • Views 369
  • Created
  • Last Reply

Solved with this!:

 

[data-section-id="602ed814a1a8ab1c15d4379f"]{
.sqs-col-6, .sqs-col-5 {
  border:solid 2px #b89057!important;
   margin:20px!important;
  padding:10px!important;
  }
}
@media screen and (min-width: 750px) {
[data-section-id="602ed814a1a8ab1c15d4379f"] .sqs-row {
display:flex!important;
flex-wrap:wrap!important;
.sqs-col-7 {
width: 50%!important;
}
.sqs-col-6, .sqs-col-5 {
display: flex;
align-items: center;
width: 50%!important;
border:solid 2px #b89057!important;
margin:20px!important;
flex: 1 330!important;
padding:10px!important;
}
}
}

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.