IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

HTML Discussion :

Nouveau probleme de mise en page avec IE


Sujet :

HTML

  1. #1
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut Nouveau probleme de mise en page avec IE
    Salut a tous,

    bon IE fait encors des sienne.

    Voila mon petit bout de code concerné:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    <div style="background-color:blue; height:autopx;width:772px; margin:auto;">
        <div style="background-color:red; width:100%; height: 131px">
     
        </div> 
        <div style="margin:0; padding:0; width:100%;[b] height:auto[/b]; background-color:orange; overflow:hidden;">
           <div style="margin: 0; padding: 0; width: 12px; height: 100%; background-color: yellow;float:left;overflow:hidden;">
           </div>
           <div style="margin: 0; padding: 0; background-color:cyan; width: 748px; height: auto;float:left; overflow:hidden;">
              <[content]>
           </div>
           <div style="margin: 0; padding: 0; width: 12px; height:100%; background-color: purple;float:left;overflow:hidden;">
           </div>
     
        </div>
        <div style="margin:0; padding:0; width:100%; height:22px; background-color:green;">
        </div><div style="clear: both; margin:0; padding:0;"></div>
     
     
    </div>
    Voila il se trouve que lorsque la partie en grasse en relative (% ou auto) le div concerné ne prend pas toute la hauteur. (ce qui se fait sur FF).

    Regarder par vou même avec IE ici: http://formations.univ-lemans.fr:8001/emploi/

    et normalement les cadre jaune et mauve devrait recouvrir le cadre orange.

    Savez vous ce que je peut faire?
    manganimes (en construction) -
    zemanga

  2. #2
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut
    le liens marche pas (normal c'est sous aegir) donc voici un petit screenshot:

    http://manganime.0.free.fr/fichiermanganime.0/IE.jpg
    manganimes (en construction) -
    zemanga

  3. #3
    Membre actif
    Profil pro
    Inscrit en
    Août 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 221
    Points : 227
    Points
    227
    Par défaut
    Salut,

    Juste en changeant cette ligne :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    <div style="margin:0; padding:0; width:100%;[b] height:auto[/b]; background-color:orange; overflow:hidden;"> 
     
    EN
     
    <div style="margin:0; padding:0; width:100%; height:100%; background-color:orange; overflow:hidden;">
    Et cela fonctionne chez moi avec IE.

  4. #4
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut
    c'est deja lalgine que j'avais
    je voulais mettre le code en gras pour montrer le height qui dérangait.

    Mais ca a laisser les balises.
    Elle ne sont pas dans mon code .
    Tu as mis tout le code chez toi ou juste la ligne?
    manganimes (en construction) -
    zemanga

  5. #5
    Membre actif
    Profil pro
    Inscrit en
    Août 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 221
    Points : 227
    Points
    227
    Par défaut
    J'ai mis tout le code avec ce doctype :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
        <meta name="generator" content="PSPad editor, www.pspad.com">
        <title>
        </title>
      </head>
      <body>
        <div style="background-color:blue; height: 100%;width:772px; margin:auto;">
          <div style="background-color:red; width:100%; height: 131px">
     
          </div>
          <div style="margin:0; padding:0; width:100%; height:100%; background-color:orange; overflow:hidden;">
            <div style="margin: 0; padding: 0; width: 12px; height: 100%; background-color: yellow;float:left;overflow:hidden;"></div>
            <div style="margin: 0; padding: 0; background-color:cyan; width: 748px; height: auto;float:left; overflow:hidden;">
              <[content]>
            </div>
            <div style="margin: 0; padding: 0; width: 12px; height:100%; background-color: purple;float:left;overflow:hidden;">
            </div>
     
          </div>
          <div style="margin:0; padding:0; width:100%; height:22px; background-color:green;">
          </div>
          <div style="clear: both; margin:0; padding:0;">
          </div>
        </div>
      </body>
    </html>
    Et a première vu ça marche.

  6. #6
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut
    De ja avec ton code le cadre principale de la page n'est plus centré au milieu avec internet explorer .
    Ca doit venir de ton doctype
    manganimes (en construction) -
    zemanga

  7. #7
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut
    Comment que je dois faire.

    IL commence sérieusement a m'énerver le IE, il me fait perdre beaucoup de temps a chaque fois.
    manganimes (en construction) -
    zemanga

  8. #8
    Membre actif
    Profil pro
    Inscrit en
    Août 2005
    Messages
    221
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 221
    Points : 227
    Points
    227
    Par défaut
    J'ai déjà essayé ce style de mise en page, et il y a qu'avec ce doctype que IE accepte de fonctionner.

    Pour le centrage, la position absolute peut remédier au problème :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
        <meta name="generator" content="PSPad editor, www.pspad.com">
        <title>
        </title>
      </head>
      <body>
        <div style="background-color:blue; width:772px; margin-left: -386px; left: 50%; position: absolute;">
          <div style="background-color:red; width:100%; height: 131px">
     
          </div>
          <div style="margin:0; padding:0; width:100%; height:100%; background-color:orange; overflow:hidden;">
            <div style="margin: 0; padding: 0; width: 12px; height: 100%; background-color: yellow;float:left;overflow:hidden;"></div>
            <div style="margin: 0; padding: 0; background-color:cyan; width: 748px; height: auto;float:left; overflow:hidden;">
              <[content]><br>
              <[content]><br>
              <[content]><br>
              <[content]><br>
              <[content]><br>
            </div>
            <div style="margin: 0; padding: 0; width: 12px; height:100%; background-color: purple;float:left;overflow:hidden;">
            </div>
     
          </div>
          <div style="margin:0; padding:0; width:100%; height:22px; background-color:green;">
          </div>
          <div style="clear: both; margin:0; padding:0;">
          </div>
        </div>
      </body>
    </html>
    A voir si cela peut te convenir ?

    Car sinon, je vois rien d'autres pour ce d'IE.

  9. #9
    Membre éclairé Avatar de Death83
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    1 667
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2005
    Messages : 1 667
    Points : 878
    Points
    878
    Par défaut
    le probleme c'est que ca ne sera pas centré pour toute les résolution si je fais ca .
    manganimes (en construction) -
    zemanga

Discussions similaires

  1. Probleme de mise en page avec feuille de style
    Par Clydys dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 02/01/2009, 18h42
  2. Probleme de mise en page avec ma feuille de style
    Par tinoudu01 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 09/11/2008, 11h52
  3. Probleme de mise en page avec css
    Par fabrice88 dans le forum Mise en page CSS
    Réponses: 6
    Dernier message: 31/10/2008, 11h25
  4. [CSS][HTML] Mise en page : Avec ou sans tableaux ?
    Par arno2000 dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 09/08/2005, 02h34
  5. Problème de mise en page
    Par cinezone dans le forum Mise en page CSS
    Réponses: 7
    Dernier message: 02/10/2004, 21h31

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo