I am struggling to align the text on the left and right side of my image to the vertical center. It seems like my containers are not recognizing their height. How can I resolve this issue?
Here are the CSS and HTML snippets for your reference:
.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>