Positioning image alt text
img {
display: flex;
justify-content: space-evenly;
align-items: center;
}
img {
width: 100px;
height: 50px;
line-height: 50px;
text-align: center;
}
Sets the alt vertical and horizontal align to middle.
The line-height
property on a parent element will affect the presentation of the alt
attribute text.