это мой код для одного из разделов моего сайта.
<div id="pricing" class="pricing container gap-double">
<!--Row-->
<div class="row">
<div class="col-sm-4">
<div class="block-member">
<h6 class="mb-0 h6 light">sculpt your dream body</h6>
<h3 class="italic">12 week package</h3>
<div class="block-price">
<span class="dollar italic coloured">£</span>
<span class="price colored bold">100</span>
<span class="terms italic colored ">per month</span>
</div>
<h6 class="h6">become a member</h6>
<a href="#" class="but round lg text-center">buy package now</a>
</div>
</div>
<div class="col-sm-4">
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0 text-center">meal plan</h4>
<p class="text-center">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0">meal plan</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0">meal plan</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0">meal plan</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0">meal plan</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
<div class="block-feature">
<div class="block-body">
<h4 class=" mb-0">meal plan</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
</div>
</div>
</div>
<!--End container-->
этот код разбивает мой сайт на три ряда ценовых предложений.однако, когда это полный экран, это прекрасно.(см. рис. ниже)
, но когда он работает в режиме мобильного экрана, я не могу переместить свои блоки в центр экрана.(см. рис. ниже)
что я здесь не так делаю?
CSS
/ * Раздел цен * /
.block-price {
margin-bottom: 2em;
font-family: 'Roboto Condensed', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}
.block-price span.price {
font-size: 140px;
line-height: 140px;
}
.block-price span.dollar {
font-size: 20px;
position: relative;
bottom: 4.2em;
font-weight: 300;
left: 0.5em;
}
.block-price span.terms {
bottom: .5em;
display: block;
font-size: 18px;
position: relative;
font-weight: 300;
}
.block-feature,
.block-faq {
margin-bottom: 3em;
overflow: hidden;
}
.pricing .col-md-8 .col-sm-6:last-child .block-feature,
.pricing .col-md-8 .col-sm-6:nth-last-child(2n) .block-feature,
.faq .row:last-child .col-sm-5 .block-faq,
.faq .row .col-sm-5:nth-last-child(2n) .block-faq {
margin-bottom: 0
}
.icon {
font-size: 38px;
}
.block-feature .block-body {
float: left;
width: 50%;
text-align: center;
}
.block-feature .block-body p,
.block-faq p {
margin-bottom: 0;
}
/* End pricing section*/