Probleme marge blanche sur mobile

Fermé
netw - Modifié par netw le 21/09/2015 à 12:04
gardiendelanuit Messages postés 1769 Date d'inscription jeudi 20 décembre 2007 Statut Membre Dernière intervention 19 novembre 2016 - 23 sept. 2015 à 14:06
bonjour

donc voila mon problème

mon site marche trés bien en visuel sur les résolution pc

par contre sur portable voila ce que ça donne
http://hpics.li/ba60c50

et sur ordinateur sa donne en dezooman a fond

http://hpics.li/e2b174e

pourtant il n'y a aucun décalage sur ordinateur et , quand j'enleve l'image il n'y a plus de marge sur mobile !

j'ai chercher et chercher je ne comprend pas

voici le code


body {
background:url("background.png");
background-repeat:repeat;

}

#banniere
{
background-image:url("imagetest.png");
width:1024px;
height:227px;
background-repeat:no-repeat;
margin-left:auto;
margin-right:auto;
z-index:0;



<!DOCTYPE html>
<html>
<head>
<title>test</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" href="css.css" type="text/css" />
</head>
<body>

<div id="banniere">
</div>

</body>
</html>




A voir également:

1 réponse

gardiendelanuit Messages postés 1769 Date d'inscription jeudi 20 décembre 2007 Statut Membre Dernière intervention 19 novembre 2016 264
23 sept. 2015 à 14:06
Bonjour,

Et en spécifiant un
margin: 0
à body?
0