Я должен поместить текст слева и справа от моего изображения до вертикального центра.Но похоже, что мои контейнеры не знали бы, какой высоты они имеют.
Как я могу это исправить?
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
/* Set the fixed height of the footer here */
background-color: #f5f5f5;
display: table;
}
.row {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<footer class="footer">
<div class="container" style="display: table-cell; vertical-align: bottom">
<div class="row">
<div class="col-md-4 vert">
<p>
Text 1
</p>
</div>
<div class="col-md-4 text-center">
<img src="https://www.w3schools.com/images/w3schools_green.jpg" style="height: 60px" />
</div>
<div class="col-md-4 text-right">
Text 2
</div>
</div>
</div>
</footer>