Я знаю, что тема существует в stackoverflow и google, но я застрял в своем коде, который отличается.
Я хотел бы выровнять свои 3 изображения ниже
Я думаю использовать свойства margin-left
и margin-right
, но я думаю, что это не правильно.
.img-01{
background-image: url("https://zupimages.net/up/19/51/vn88.jpg");
height: 197px;
width: 27%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
margin-top: 50px;
border: 3px solid red;
}
.img-02{
background-image: url("https://zupimages.net/up/19/51/9fik.jpg");
height: 197px;
width: 27%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
margin-top: 50px;
border: 3px solid red;
}
.img-03{
background-image: url("https://zupimages.net/up/19/51/dwq9.jpg");
height: 197px;
width: 27%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
margin-top: 50px;
border: 3px solid red;
}
<img class="img-01">
<div class="img-01-title">Trust Management</div>
<img class="img-02">
<div class="img-02-title">Well Documented</div>
<img class="img-03">
<div class="img-03-title">Great Support</div>