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 :

Problème avec un iframe, tout se décale


Sujet :

HTML

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2005
    Messages
    65
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 65
    Points : 33
    Points
    33
    Par défaut [RESOLU]Problème avec un iframe, tout se décale
    Bonjour à tous

    J'ai inséré une iframe pour mes menu, celui de gauche et celui de droite mais celui de droite me décale tout je ne trouve pas la solution pour remettre tout bien centré.
    Voila la page sans l'iframe du menu de droite :
    http://perso.wanadoo.fr/puissancegta/index.htm
    Et voila la page avec l'iframe du menu de droite :
    http://perso.wanadoo.fr/puissancegta/test/bug.htm

    Pouvez-vous m'aider à tout recentré avec l'iframe du menu de droite ?

    Merci d'avance!

  2. #2
    Membre averti

    Inscrit en
    Octobre 2004
    Messages
    363
    Détails du profil
    Informations forums :
    Inscription : Octobre 2004
    Messages : 363
    Points : 417
    Points
    417
    Par défaut


    Pourquoi tu veux passer par une iframe pour faire un menu comme celui ci ??

    Aucun interet, passe par des divs tu te prendra moins la tête.

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2005
    Messages
    65
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 65
    Points : 33
    Points
    33
    Par défaut
    au début c'était comme ca mais quand tu doit changer un truc dans un menu et que t'a 20 pages à faire à la suite, ben c'est un peu lent et chiant à faire tandis qu'avec une iframe ben sufit de changer une fois le fichier menu.htm de l'iframe et c'est bon

  4. #4
    Inactif  
    Avatar de Kerod
    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    11 672
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 11 672
    Points : 20 778
    Points
    20 778
    Par défaut
    Bon j'ai eu un peu de temps et j'ai modifié ton index, j'ai viré ce qui était pour moi inutile et j'ai adapté à ce que tu voulais obtenir...
    Au final meme présentation que celui sans iframe, à une exception près (mais tu peux régler) sinon c'est la même...
    Voilà le code :
    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
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
     
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head><link href="bug_fichiers/content.css" type="text/css" rel="stylesheet"><title>.:Puissance GTA:.v3.0 Tous les codes, astuces, cheats, aides... sur la saga des GTA</title>
     
    <meta name="keywords" content="GTA San Andreas, GTA vice city, GTA 3, codes, aides, cartes, voitures, astuces, tag, fer, huitres, photos">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="robots" content="index,follow"></head>
     
    <body>
    <table align="center" border="0" cellpadding="0" cellspacing="0" height="394" width="750">
      <tbody>
        <tr background="bug_fichiers/degrade70.htm" height="70">
    		<td height="70" colspan="3"><div align="center"><img src="bug_fichiers/banire.jpg"></div></td>
    	</tr>
    	<tr><td colspan="3" height="5px">&nbsp;</td></tr>
    	<tr>
          <td height="258" width="134">
    	  	<iframe src="bug_fichiers/menu-gauche.htm" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" height="600" width="132"></iframe>
    	  </td>
    	  <td width="454" align="center" valign="top">
    	  <table bgcolor="#9c9c9c" border="0" cellpadding="0" cellspacing="1" height="548" width="100%"> 
    		<tbody>
    		  <tr>
              	<td class="styleMenu" background="bug_fichiers/accueil.jpg" height="34" width="434"> <div align="center"></div></td>
              </tr>
              <tr>
                <td bgcolor="#a4bbff">
    			<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" height="527" width="100%">
                      <tbody><tr>
                        <td valign="top" width="1%"><p>&nbsp;</p>                      </td>
     
                        <td valign="top" width="97%"><p align="left">
                            <span class="styleecriture"> 
                        <br>
    <br>
     
     
     
     
     
    <table align="center" bgcolor="#9c9c9c" border="0" cellpadding="0" cellspacing="2" height="123" width="430">
              <tbody><tr>
                <td class="stylelienmail" align="center" background="bug_fichiers/03.jpg" height="23"><div class="styleMenu" align="center"><span><b>Nouvelle version en ligne! - <font size="1">le lundi 17 Octobre à 20:50</font></b></span></div></td>
              </tr>
     
              <tr>
                <td><table bgcolor="white" border="0" cellpadding="0" cellspacing="0" height="106" width="428">
     
                    <tbody><tr>
                      <td background="bug_fichiers/04.jpg"><p align="left">
     
    <font size="2">&nbsp;Bonjour à tous!<br>
    <br>
    &nbsp;La nouvelle version de Puissance GTA est enfin disponible!
    &nbsp;J'espère qu'elle vous plait et que les petits défauts de
    &nbsp;l'ancienne version sont comblés.<br><br>
    &nbsp;Beaucoup de pages ont été mises à jour mais certaines ne sont
    &nbsp;pas encore disponibles dans cette nouvelle version. C'est
    &nbsp;pourquoi j'essairai de le faire au plus vite pour vous
    satisfaire. &nbsp;Cet nouvelle version possède moins de PUB ce qui
    ravira la &nbsp;plupart d'entre vous.<br>
    &nbsp;Je vais aussi changer ce petit tableau où je mets les news car &nbsp;il n'est pas très beau.<br><br>
    &nbsp;Pour ceux qui préfère l'ancienne version, elle est toujours &nbsp;disponible à cette adresse :<br>
    &nbsp;<a href="http://perso.wanadoo.fr/puissancegta/index1.htm">http://perso.wanadoo.fr/puissancegta/index1.htm</a><br>
     
    &nbsp;Si vous voulez faire des remarques sur la nouvelle version du &nbsp;site, envoyez moi un ail ou parlez-en sur le forum!<br>
    <br>
    &nbsp;Je vous souhaite une bonne soirée et bon surf sur notre site!</font>
           </p><table border="0" cellpadding="0" cellspacing="1" height="20" width="428">
     
                          <tbody><tr>
                            </tr></tbody></table></td>
                    </tr>
                </tbody></table></td>
     
              </tr>
            </tbody></table>
     
       <br>
    <hr align="left" width="100%"> 
                               <center>Copyright © 2005 - Puissance GTA - Tous droits réservés<br>
    <a href="http://www.xiti.com/xiti.asp?s=159930" title="Mesurez votre audience">
    <script type="text/javascript">
    <!--
    Xt_param = 's=159930&p=';
    Xt_r = document.referrer;
    Xt_h = new Date();
    Xt_i = '<img width="39" height="25" border="0" ';
    Xt_i += 'src="http://logv25.xiti.com/hit.xiti?'+Xt_param;
    Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
    if(parseFloat(navigator.appVersion)>=4)
    {Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
    document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Analyse d\'audience">');
    //-->
    </script><img src="bug_fichiers/hit.gif" title="Analyse d'audience" border="0" height="25" width="39">
    <noscript>
    analyse mesure frequentation internet par <img width="39" height="25"
    src="http://logv25.xiti.com/hit.xiti?s=159930&amp;p=" alt="Analyse
    d'audience" />
    </noscript></a></center></span></p></td>
                        <td valign="top" width="2%">&nbsp;</td>
     
                      </tr>
                    </tbody></table></td>
                  </tr>
                  </tbody></table>
    	  </td>
    	  <td width="132" align="right">
    	  	<iframe src="bug_fichiers/menu-droit.htm" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" height="600" width="132"></iframe>
    	  </td>
        </tr>
     
      </tbody>
    </table>
    </body>
    </html>

  5. #5
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Août 2005
    Messages
    65
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Août 2005
    Messages : 65
    Points : 33
    Points
    33
    Par défaut
    OK j'ai essayé et ca marche, merci beaucoup!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. problème avec un code tout bête
    Par Lyaskator dans le forum Caml
    Réponses: 6
    Dernier message: 15/12/2010, 20h21
  2. Linq: problême avec une requete tout bete
    Par ChapiBoulo dans le forum Débuter
    Réponses: 1
    Dernier message: 21/05/2009, 12h57
  3. Problème avec les IFRAME
    Par cinemania dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 20/10/2006, 17h12
  4. Problème avec un élément wyzwyg... (iframes)
    Par nasgektw dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 21/04/2006, 16h43

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