ça ne fait pas propre

Résolu
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

  1. 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>
    1. merci :)
    2. deussiemme problemme :
      comment definir une position a une image
      <IMG src="img/background.jpg" alt="background" width="250" height="250" "position">
    3. utilise le background image dans une DIV à la place du Body, et tu place la DIV là où tu le souhaite.
    4. 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" ?
    5. 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>