This is the complete code on p. in html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Galeria de Fotos</title>
<link href="estilo.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="corpo">
<div id="banner"></div>
<div id="menup">
<ul>
<li><a href="index.html">Início</a></li>
<li><a href="contexto.html">Contexto</a></li>
<li><a href="personagens.html">Personagens</a></li>
<li><a href="narrador.html">Narrador</a></li>
<li><a href="enredo.html">enredo</a></li>
</ul>
</div>
<br>
<br>
<div id="conteudo">
<div class="fotos"><img src="basilio.jpg" /></div>
<div class="fotos"><img src="luisa.jpg" /></div>
<div class="fotos"><img src="jorge.jpg" /></div>
<div class="fotos"><img src="juliana.jpg" /></div>
<div class="fotos"><img src="leopoldina.jpg" /></div>
<div class="fotos"><img src="dona felicidade.jpg" /></div>
<div class="texto"> luisa trai jorge</div>
</div>
<br>
<br>
<br>
<br>
<div id="rodape">
<p>Criado pelos alunos do 2ºB ETIM Informática</p>
<p>ETEC Ferraz de Vasconcelos | 2016 ©</p>
</div>
</div>
</body>
</html>
And this is the CSS code
.fotos{
height:300px;
width:400px;
background-size:100% auto;
}
.texto{
padding:20px;
font-family:Arial;
text-align:center;
color:white;
opacity:0;
transition: opacity .2s linear;
background-color:rgba(0,0,0,.7);
}
.imagem:hover .texto{
opacity:1;
}
What I want is basically to hover the mouse over the photo and a text appears on top of the photo, in case, for each photo, of each character.