Image 50 50 largeur

Résolu
steve-elipz Messages postés 171 Statut Membre -  
steve-elipz Messages postés 171 Statut Membre -
Bonjour,

j ai deux images qui sont a 50% de largeur, les deux avec des liens donc nickel mais quand on réduit la page, l image de gauche se coupe... comment puis je bloquer se défaut? merci

https://www.000webhost.com/migrate?static=true


<html>
<head>
<style type="text/css">
html {
height:100%;
}

body {
height:100%;
width:100%;
min-height:100%;
margin:0;
padding:0;
font-size:0;
}

#gauche {
display:inline-block;
width:50%;
height:100%;
background: url(https://www.000webhost.com/migrate?static=true
background-size:cover;
}

#droite {
display:inline-block;
width:50%;
height:100%;
background: url(https://www.000webhost.com/migrate?static=true
background-size:cover;
}
</style>
</head>
<body>
<script type="text/javascript">
window.onload=function() {
document.getElementById("gauche").onclick = function() {
document.location.href="http://www.monsite.com/page1";
};
document.getElementById("droite").onclick = function() {
document.location.href="http://www.monsite.com/page2";
};
}
</script>
<div id="gauche"></div>
<div id="droite"></div>
</body>
</html>

2 réponses

steve-elipz Messages postés 171 Statut Membre
 
svp???
0
steve-elipz Messages postés 171 Statut Membre
 
j ai trouvé background size 100% 100%


merci.........
0