Text Vertical Alignment in Section

2 replies · opened Aug 17, 2017

LliltntornadoAug 17, 2017

I've got a section that I am trying to vertical align middle the text on. I've tried adding it to the `` code, but it causes the text and images to stack on top of one another. It aligns fine until I resize .payment-cards li in the css from 40px to 100px.

This code was modified from your demo-ecommerce page:
div class="section dark notopborder nomargin">
<div class="container clearfix">
<div class="row payments-info">
<div class="col-md-7">
<h3 class="lead nomargin">Award WINNING Family Destination</h3>
</div>
<div class="col-md-5">
<ul class="payment-cards clearfix" style="margin-top: 5px;">
<li><img src="images/award-1.png" alt="Visa" /></li>
<li><img src="images/award-2.png" alt="Master Card" /></li>
<li><img src="images/award-3.png" alt="American Express" /></li>
</ul>
</div>
</div>
</div>
</div>

This css was specific to this section of the ecommerce page:
.payment-cards {
list-style: none;
text-align: center;
margin: 0;
}

.payment-cards li {
display: inline-block;
margin: 0 5px;
width: 100px;
}

@media (max-width: 991px) {
.payments-info { text-align: center; }

.payment-cards {
margin-top: 40px;
text-align: center;
}

LliltntornadoAug 22, 2017

I'm still waiting on help with this please.

SSemicolon WebSTAFFAug 24, 2017

Hello,

Please consider using the padding-top CSS Property for this. Example:

.payments-info .lead { padding-top: 40px; }

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard