@Pefezy

Как выровнять блоки по высоте?

Есть вот такие блоки, нужно что бы они по верхней линии были на одном уровне.
5f1042cbe625c735843616.png
<section class="services wrapper">
        <div class="services-title-block">
        <div class="services-title">SERVICES</div>
        <h2 class="services-title2">Choose The Service Package <br> That Suits Your Needs</h2>
        </div>
        <div class="services-cards wrapper">
            <div class="services-card">
                <img src="/img/cup.jpg" alt="cup">
            <div class="card-body">
            <h2>Off The Ground Off<br> The Ground</h2>
            <p>Lorem ipsum, dolor sit amet 
                consectetur adipisicing elit. 
                Hic debitis dignissimos aperiam.</p>
                <ul>
                    <li><span>Lorem, ipsum dolor.</span></li>
                    <li><span>Lorem ipsum dolor sit.</span></li>
                </ul>
                <div class="price"><h4>Starting at</h4><p class="money">$199</p></div>
                <button class="all">DETAILS</button>
            </div>

.services-title-block{
    padding-bottom: 50px;

}
.services-title{
    font-size: 14px;
    color: #00bb9c;
    text-align: center;
    padding-bottom: 10px;
}
.services .services-title2{
    text-align: center;
    color: #484a46;
    font-size: 24px;
    justify-content: space-between;
}
.services-cards{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.services-cards .services-card img{
    width: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.services h2{
    padding-bottom: 15px;
    font-size: 21px;
    text-align: center;
    color: #484a46;
}
.services p{
    color: #787976;
    text-align: left;
    line-height: 25px;
}
.services li{
    list-style-type: square;
    color: #00bb9c;
}
.services-card li span{
    
    color: #787976;
}
.services-card{
    margin: 0 15px;
    line-height: 30px;
    border: solid 1px rgba(0, 0, 0, 0.1);
    border-radius: 7px;
}
.services-cards .card-body{
    padding: 35px;
}
.services .price{
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
}
.services h4{
    color: #484a46;
    text-align: center;
    font-weight: 600;
    padding-right: 7px;
}
.services .money{
    color: #00bb9c;
    line-height: 30px;
    text-align: center;
    font-weight: 600;
    padding-right: 7px;
}
.services button{
    position: absolute;
    display: inline-block;
    width: 120px;
    height: 45px;
    margin: 10px 55px;
}
  • Вопрос задан
  • 60 просмотров
Решения вопроса 1
@ArtJH
родитель{
   display: flex;
align-items: flex-start
}
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы