I am trying to position a caption over the bottom part of an image using position absolute
and bottom 0
which it is doing, but the tails of the g and the y letters area dangling down below the edge of the image. Is this expected behavious and do I just have to adjust my positioning of the caption up a bit?
Here's the code:
.article-image,
figure {
margin: 1.5em 0;
}
figure {
margin-block-start: 0em;
margin-block-end: 0em;
margin-inline-start: 0px;
margin-inline-end: 0px;
position: relative;
}
figcaption {
position: absolute;
bottom: 0;
width: 100%;
background-color: rgba(255, 255, 255, .6);
}
cite {
font-size: 0.85em;
}
<figure>
<img class="aside-image" src="images/grayson-perry.jpg">
<figcaption>I've moved out just as Walthamstow is becoming gentrified. My work is done.</figcaption>
</figure>
<cite>- Graysen Perry</cite>
I wouldn't expect the tail of the g and the y to hang down below the edge of the image.