Faire border sur img en width et height
Bonjour à tous,
alors voici mon problème, pour mon site internet je souhaiterai une bordure qui fasse tout le tour de la fenêtre, je l'ai donc appliqué à mon fond qui est une image qui s'adapte en width et en height mais malheureusement le contour n'est visible qu'en haut et à gauche, je ne comprend pas pourquoi.
Voici mon code :
Code:
<div id="fond"><img src="img/fond.png" class="stretch" alt="fond texture"/></div>
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| #fond{
width:100%;
height:100%;
position:fixed;
left:0px;
top:0px;
z-index:-1;
position:fixed;
border: 7px solid #F9094A;
}
.stretch {
width:100%;
height:100%;
} |
Merci à tous.