Metre image a droite

Lea -  
 Lea -
Bonjour, j'ai besoin de vous aujourd'hui je n'arrive pas à mettre une image à droite d'une autre voici le code que j'ai fais :

code css:

#ban
{
width: 800px;
height: 150px;
background-image: url("images/lol.png");
background-repeat: no-repeat;
margin-bottom: 10px;
}

#ban2
{
width: 800px;
height: 150px;
background-image: url("images/94.png");
background-repeat: no-repeat;
margin-bottom: 10px;
left-top: 395px;

}

1 réponse

  1. ouga bouga
     
    rajoutes float:left; sur la div de gauche , et float:right; sur celle de droite , ou alors float:left; sur les 2 si tu veux qu'elles soient cote à cote .
    1
    1. Lea
       
      Merci de ta réponse mais les image sont l'un sur l'autre et non l'une a coté de l'autre.
      0
    2. ouga bouga
       
      tu peux nous mettre ton code html pour voir ?
      0
    3. Lea
       
      oui, le voila :


      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
      <head>
      <title>Bienvenue sur mon site !</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <link rel="stylesheet" media="screen" type="text/css" title="style" href="Yanis.css" />
      </head>
      <body>
      <div id="ban">

      </div>

      <div id="ban2">

      <div id="corps">
      cc
      </div>

      <div id="pied_de_page">

      </div>

      </body>
      </html>
      0
    4. Lea
       
      C'est possible de faire avec des px; ?
      0