I need help aligning three images horizontally with text underneath, using CSS.
Despite trying multiple methods, the images remain vertically aligned and the text does not align properly with the images.
#img_cont {
display: table;
width: 90%;
margin: 20px auto;
}
#img_cont a {
display: table-cell;
text-align: center;
width: 16%;
}
#img_cont img {
width: 100%;
max-width: 150px;
}
.reviews_block {
background: #F04950 url('images/layout/love_hearts.png') center;
color: #F5F5F5;
position: relative;
-webkit-box-shadow: inset 0 -9px 11px -5px rgba(104, 12, 16,.5), inset 0 9px 11px -5px rgba(104, 12, 16,.5);
-moz-box-shadow: inset 0 -9px 11px -5px rgba(104, 12, 16,.5), inset 0 9px 11px -5px rgba(104, 12, 16,.5);
box-shadow: inset 0 -9px 11px -5px rgba(104, 12, 16,.5), inset 0 9px 11px -5px rgba(104, 12, 16,.5);
}
.reviews_block a {
color: #F5F5F5;
}
.reviews_block .reviews .section_content {
max-width: 1100px;
margin: auto;
padding: 3%;
}
.reviews_block .reviews {
text-align: center;
}
.reviews_block .reviews img {
width: auto;
}
.reviews_block .reviews .reviewer_pic {
background: #FFF;
display: table;
margin: 2em auto;
padding: .5em;
border: 1px solid #F76F80;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.reviews_block .reviews .reviewer_pic img {
background: #FFF;
padding: 0;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.reviewer_info p {
line-height: 150%;
display: table;
margin: 0 auto;
}
.review_rating {
display: table;
font-size: 200%;
line-height: 100%;
margin: 1em auto;
}
.review_content {
max-width: 650px;
margin: auto;
font-size: 130%;
line-height: 150%;
}
.review_pullquote {
margin: .5em 0;
padding: 0;
border: 0;
color: #FFF;
line-height: 120%;
font-weight: normal;
font-size: 200%;
font-weight: 900;
font-size: 250%;
line-height: 100%;
}
<p id="img_cont">
<a href="#"><img src="/wp-content/themes/webbie/images/write13.png" <p> Sample text here. </a></p>
<a href="#"><img src="/wp-content/themes/webbie/images/write13.png" <p> Sample text here. </a></p>
<a href="#"><img src="/wp-content/themes/webbie/images/write13.png" <p> Sample text here. </a></p>
</p>