ça ne fait pas propre

Résolu
ati14 Messages postés 463 Statut Membre -  
ati14 Messages postés 463 Statut Membre -
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. Tatanos Messages postés 1263 Statut Membre 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
    1. ati14 Messages postés 463 Statut Membre 13
       
      merci :)
      0
    2. ati14 Messages postés 463 Statut Membre 13
       
      deussiemme problemme :
      comment definir une position a une image
      <IMG src="img/background.jpg" alt="background" width="250" height="250" "position">
      0
    3. Tatanos Messages postés 1263 Statut Membre 156
       
      utilise le background image dans une DIV à la place du Body, et tu place la DIV là où tu le souhaite.
      0
    4. ati14 Messages postés 463 Statut Membre 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
    5. ati14 Messages postés 463 Statut Membre 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