I had started experimenting with webdev after long break and can not figure our why the Figcaption is not displayed properly in Safari.
I had created the website www.suezre.com and when viewed in Chrome or Firefox figcaption on the pictures looks good, but on Safari it takes much more space.
Any suggestion how i could fix this?
Thank you R
<figure>
<img src="../img/budapest_our_home_city.png"/>
<figcaption>Budapest, our home city</figcaption>
</figure>
figure {
position: relative;
}
figcaption {
position: absolute;
bottom: 0;
padding: 15px;
color: white;
background-color: rgba( 29, 20, 17, .6);
text-align: right;
text-transform: uppercase;
font-size: 1rem;
width: 100%;
}
.banner img {
max-width: 100%;
text-align: center;
display: block;
margin: auto;
}