1
Every time I put the edge it gets this problem, the funny thing is q this working well in other projects (I tried to put the edge straight in the figure.photo-caption img, it worked but to create the effects got pretty messed up and before it was like this.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title> Testando </title>
<style>
figure.foto-legenda {
border: 3px solid black;
position: relative;
}
figure.foto-legenda img {
width: 100%;
height: 100%;
}
figure.foto-legenda figcaption {
position: absolute;
top: 0px
}
</style>
</head>
<body>
<h1>The Simpsons</h1>
<figure class="foto-legenda">
<img src="imagens/homer.jpg"/>
<figcaption>
<h1> Homer Simpson </h1>
</figcaption>
</figure>
</body>
</html>
Does the image itself not have this white space? Dai it is better to remove cutting with some image editor
– Costamilam
No and I have tested with several images.
– J Werneck