I’ve used this code to implement a guarantee bar. Now I am using it on another section in my website as well but want to make it 2 across, if I add more it keeps putting them all across like 4 across. I want it to look like this, though even more even so it’s like 50/50:
The code I used to make the banner was here:
{{ section.settings.header }}
{{ block.settings.icon_header }}
{{ block.settings.icon_text }}
Css:
/****** guarantee bar ******/
.guarantee-icon {
width: 40px;
margin-right: 20px;
}
.guarantee-icon ~ span {
display:inline-block;
}
.guarantee-header {
text-align: center;
font-size: 32px;
}
.guarantee-banner {
max-width: 100%;
margin: auto;
padding-bottom: 0px;
padding-left: 55px;
padding-right: 55px;
margin-top: 0px;
background-color: #131313;
color: #ffff;
}
@media screen and (min-width: 750px) {
.guarantee-wrapper {
display: flex;
justify-content: center;
}
}
@media screen and (max-width: 749px) {
.guarantee-wrapper {
display: flex;
justify-content: center;
flex-direction: column;
}
}
.guarantee-item {
text-align: left;
margin: 20px 30px;
display: flex;
align-items: center;
line-height: 2rem;
}
.guarantee-item svg {
margin-bottom: 15px;
height: 50px;
}
@media ( max-width: 749px ) {
.guarantee-wrapper {
grid-template-columns: repeat(2, 1fr);
}
}
.guarantee-title {
text-align: left;
color: #fff;
font-size: calc(var(–font-heading-scale) * 1.5rem);
}
