Metre image a gauche

Yanis -  
yaya94270 Messages postés 13 Statut Membre -
Bonjour, comment je peux faire pour metre mon image a gauche dans mon cadre?

<div id="mid"> <IMG src="328.png">

Merci

6 réponses

  1. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
     
    bizarre, elle est censé être à gauche par défaut...

    <div id="mid">
    <IMG style="float:left;" src="328.png">
    <div style="clear:both;"></div>
    </div>
    1
    1. Yanis
       
      Merci de ta réponses, l'image est à gauche mais elle sort du cadre .
      0
    2. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
       
      post tout ton DOM stp, ya un truc qui cloche.
      0
    3. Yanis
       
      <head>
      <title>Maintenance » ! </title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <style type="text/css">
      <!--
      body {
      text-align: center;
      background-color: #ffffff;
      margin-top: 15px;
      }
      #container {
      width: 667px;
      margin: auto;
      font-family: Verdana;
      font-size: 10px;
      font-weight: normal;
      color: #000000;
      }
      #top {
      background: url(header.gif);
      height: 22px;
      }
      #mid {
      background: url(background.gif);
      }
      #bot {
      background: url(footer.gif);
      height: 18px;
      }
      -->
      </style>
      </head>
      <body background="bg.png">
      <div id="container">
      <div id="top"> </div>
      <div id="mid"> <IMG src="328.png"> </div>


      <div id="mid"><br><br><br></br>Bienvenue sur la page de maintenance de le site est actuellement fermer !<br></br><br></br><IMG src="frank_19.gif"> <br></br> </div>
      <div id="bot"></div>


      </div>
      </body>
      </html>
      0
  2. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
     
    déjà t'as 2 id="mid" hors un id ne doit concerner qu'un seul élément, met class="mid" plutot, et replace #mid par .mid dans ton css.
    1
  3. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
     
    préfère les class aux id. L'id ne sert que quand tu veux cibler un élément en particulier. Mais dans la plupart des cas class suffit.
    1
    1. Yanis
       
      ,
      0
  4. yaya94270 Messages postés 13 Statut Membre 1
     
    Pourquoi tu redonne le meme code que j'ai donner en premier?
    Merci pour ton aide mes l'image n'est toujour pas à gauche.
    1
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. Yanis
     
    <head>
    <title>Maintenance » Habbpop ! </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    body {
    text-align: center;
    background-color: #ffffff;
    margin-top: 15px;
    }
    #container {
    width: 667px;
    margin: auto;
    font-family: Verdana;
    font-size: 10px;
    font-weight: normal;
    color: #000000;
    }
    #top {
    background: url(header.gif);
    height: 22px;
    }
    #mid {
    background: url(background.gif);
    }
    #bot {
    background: url(footer.gif);
    height: 18px;
    }
    -->
    </style>
    </head>
    <body background="bg.png">
    <div id="container">
    <div id="top"> </div>

    .mid <br><br><br></br>Bienvenue sur la page de maintenance de Habbpop le site est actuellement fermer !<br></br><br></br><IMG src="frank_19.gif"> <br></br> </div>
    <div id="bot"></div>

    </div>
    </body>
    </html>

    ????????????????????????????????????????????????????
    0
    1. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
       
      as-tu lu mon message ???
      0
  7. __acron__ Messages postés 39 Date d'inscription   Statut Membre Dernière intervention   4
     
    bon... c'est pourtant pas compliqué...

    <head>
    <title>Maintenance » ! </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    body {
    text-align: center;
    background-color: #ffffff;
    margin-top: 15px;
    }
    #container {
    width: 667px;
    margin: auto;
    font-family: Verdana;
    font-size: 10px;
    font-weight: normal;
    color: #000000;
    }
    #top {
    background: url(header.gif);
    height: 22px;
    }
    .mid {
    background: url(background.gif);
    }
    #bot {
    background: url(footer.gif);
    height: 18px;
    }
    -->
    </style>
    </head>
    <body background="bg.png">
    <div id="container">
    <div id="top"> </div>
    <div class="mid"> <IMG src="328.png"> </div>

    <div class="mid"><br><br><br></br>Bienvenue sur la page de maintenance de le site est actuellement fermer !<br></br><br></br><IMG src="frank_19.gif"> <br></br> </div>
    <div id="bot"></div>

    </div>
    </body>
    </html>
    0