[CSS] Image de fond dans un élément <div>
Salut
Je suis confronté à un petit problème de CSS...
J'aimerais mettre une image en fond d'un élément <div>. Rien de complexe, j'y parviens très bien :
Code:
1 2 3
| <div style="background-image: url(img/img-not.gif); z-index: 1; position: absolute; left: 99px; top: 10px;">
a<br />a
</div> |
Par contre, ce ne sont évidemment pas deux lettres que je voudrais avoir comme contenu, mais plusieurs <div>. Et là, mon image de fond n'apparaît plus :/
Code:
1 2 3 4 5 6 7 8 9
| <div style="background-image: url(img/img-not.gif); z-index: 1; position: absolute; left: 99px; top: 10px;">
<div style="z-index: 2; position: absolute; left: 0px; top: 0px;">
<img src="img/fondo_noticias.jpg">
</div>
<div style="z-index: 3; position: absolute; left: 19px; top: 0px;">
<img src="img/img-noticias.gif">
</div>
</div> |
Les deux GIF sont transparents.
Merci à ceux qui essaieront !