bonjour,
je suis en formation de webdesigner.
je voudrais qu'un background avec texte prenne la place de l'image quand la souris passe dessus.
après quelques heures de recherches
, j'arrive pas à trouver la solution,
MERCI D'AVANCE,
voici mon site:
http://www.pyroma4.myhostpoint.ch
voilà mon code:
HTML
CSS
MERCI
je suis en formation de webdesigner.
je voudrais qu'un background avec texte prenne la place de l'image quand la souris passe dessus.
après quelques heures de recherches

MERCI D'AVANCE,
voici mon site:
http://www.pyroma4.myhostpoint.ch
voilà mon code:
HTML
<div class="images"> <!--DEBUT DIV IMAGES-->
<figure><a href="images/flyers/amazing_heroes_hover.jpg"><img src="images/flyers/amazing_heroes.jpg"></a><figcaption>texte</figcaption></figure>
</div><!--END DIV IMAGES-->
CSS
.images {
display:block;
clear:left;
}
figure{
position:relative;
display:block;
width:159px;
height:89px;
float:left;
margin:25px 26px 0 0;
}
figure figcaption {
position:absolute;
visibility:hidden;
width:159px;
height:89px;
top:0;
left:0;
text-align:center;
background:#F50D10;
}
figure figcaption:hover{
visibility:visible;
}
MERCI