0
@charset "utf-8";
body {
background-color: white;
color: rgba(0, 0, 0, 1);
}
p {
text-align: justify;
text-indent: 50px;
}
/* Formatação de imagens com legendas */
figure.foto-legenda {
position: relative;
border: 8px solid white;
box-shadow: 1px 1px 4px black;
}
figure.foto-legenda img {
width: 100%;
height: 100%;
}
figure.foto-legenda figcaption {
position: absolute;
top: 0px;
background-color: rgba(0, 0, 0, .4);
color: white;
width: 100%;
height: 100%;
padding: 10px;
box-sizing: border-box;
transition: opacity 1s;
}
figure.foto-legenda:hover figcaption {
opacity: 1;
}
add the images as well. Try making a functional code for us to test. You can add a snippet using Ctrl+M
– fernandosavio
It would be good if you include your HTML tb in the question. Isn’t it working in what sense? What is the problem more precisely?
– hugocsl