1
This is the full code of pág. 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 to basically hover over the photo and show a text on top of the photo, in case, one for each photo, of each character.
was bad... I forgot the code... already I will put the complete code
– Brenda Chicarelli
I suggest you rephrase the question correctly, the code you posted below as an answer is actually part of the right question ?
– user37440
Right!!! Sorry, I’m new here..
– Brenda Chicarelli
@Renan Carlos, help me, if you make it clear.. I need to resolve this soon you know.. Thank you from now on!
– Brenda Chicarelli
I am voting to close this question as out of scope because beyond very old, there does not seem to be much interest on the part of the user who drafted the question, and has low levels of interest.
– Edilson