ça ne fait pas propre

Résolu
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   -  
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   -
bonjour
je m'entraine a coder en html
mais je bloque la :
je dois faire un background avec la même photo avec sa taille original
ma photo fait 100x100
je note donc dans mon html
<html>
<body topmargin="0" leftmargin="0">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
</body>
</html>

jusque la sa vas
mais je veut une page entière remplis de ceci
donc je fait :
<html>
<body topmargin="0" leftmargin="0">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
<IMG src="img/background.jpg" alt="background" width="250" height="250">
</body>
</html>

mais il y a des interstises blanc (couleur du fond)
comment les enlever ?

1 réponse

Tatanos Messages postés 966 Date d'inscription   Statut Membre Dernière intervention   156
 
Salut,

Ouille ! Tu te casses bien la tête :)

Essaies ça :

<body topmargin="0" leftmargin="0" style="background-image: url('img/background.jpg'); background-repeat: repeat;">

</body>
0
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   13
 
merci :)
0
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   13
 
deussiemme problemme :
comment definir une position a une image
<IMG src="img/background.jpg" alt="background" width="250" height="250" "position">
0
Tatanos Messages postés 966 Date d'inscription   Statut Membre Dernière intervention   156
 
utilise le background image dans une DIV à la place du Body, et tu place la DIV là où tu le souhaite.
0
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   13
 
quelles balises me permettes de mètre la ou je souhaite le DIV ?
<div 
style="background-image: url('img/background.jpg'); background-repeat: repeat;"
"coordonnées"
>

c'est: topmargin="0" leftmargin="0" ?
0
ati14 Messages postés 426 Date d'inscription   Statut Membre Dernière intervention   13
 
c bon j'ai trouvé :)


		 <div STYLE="position:absolute;
top:25px;
left:10%;
right:10%;">
<img src="img/up.png">
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/midle.png" >
<img src="img/end.png" >
</div>
0