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

Mise en page CSS Discussion :

tableau sous firefox


Sujet :

Tableau en CSS

  1. #1
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Février 2008
    Messages
    59
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 59
    Points : 28
    Points
    28
    Par défaut tableau sous firefox
    Bonjour, j'ai créer un tableau dans mon formulaire est l'affichage sous firefox ne me convien pas du tout, j'ai essayer de redimentionner la taille des colonnes rien a faire
    je vous montre se que sa donne sous firefox et la difference avec opera
    quelqu'un pourais m'aider a faire une belle presentation de se tableau

  2. #2
    Nouveau membre du Club
    Inscrit en
    Octobre 2007
    Messages
    27
    Détails du profil
    Informations personnelles :
    Âge : 51

    Informations forums :
    Inscription : Octobre 2007
    Messages : 27
    Points : 33
    Points
    33
    Par défaut
    Est-ce qu'on pourrait avoir le code HTML des tableaux?

  3. #3
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Février 2008
    Messages
    59
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 59
    Points : 28
    Points
    28
    Par défaut
    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
    <table id= "Table" width= 50% >
    <table border=1 align="center" cellpadding="0" cellspacing="0">
     
    <tr> 
    <th>Modifier</th>
    <th>Supprimer</th>
    <th>Verifier<br><br>Tous&nbsp;<input type='checkbox'  value="checkbox" onclick="CheckAllBox(this.checked);" /></th>
     
    <th>Partenaire<br><input name='Submit1' type='Submit' value="+">&nbsp;<input name='Submit2' type='Submit' value="-"><br><br>
    <input name='Text1' type='Text'/>&nbsp;<input id ="un" name='Submit15' type='Submit' value="GO"></th>
     
    <th>Page Sprice<br><input name='Submit3' type='Submit' value="+">&nbsp;<input name='Submit4' type='Submit' value="-"><br><br>
    <input name='Text2' type='Text'/>&nbsp;<input id ="deux" name='Submit16' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit5' type='Submit' value="+">&nbsp;<input name='Submit6' type='Submit' value="-"><br><br>
    <input name='Text3' type='Text'/>&nbsp;<input id ="trois" name='Submit17' type='Submit' value="GO"></th>
     
    <th>Page partenaire<br><input name='Submit7' type='Submit' value="+">&nbsp;<input name='Submit8' type='Submit' value="-"><br><br>
    <input name='Text4' type='Text'/>&nbsp;<input id ="quatre" name='Submit18' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit9' type='Submit' value="+">&nbsp;<input name='Submit10' type='Submit' value="-"><br><br>
    <input name='Text5' type='Text'/>&nbsp;<input id ="cinq" name='Submit19' type='Submit' value="GO"></th>
     
    <th>Contact<br><input name='Submit11' type='Submit' value="+">&nbsp;<input name='Submit12' type='Submit' value="-"><br><br>
    <input name='Text6' type='Text'/>&nbsp;<input id ="six" name='Submit20' type='Submit' value="GO"></th>
     
    <th>Commentaire<br><input name='Submit13' type='Submit' value="+">&nbsp;<input name='Submit14' type='Submit' value="-"><br><br>
    <input name='Text7' type='Text'/>&nbsp;<input id ="sept" name='Submit21' type='Submit' value="GO"></th>
    </tr>
     
    <?php
    $bool = true;
    $nb = 0;
    while ($Tab= mysql_fetch_array($result))
    	{
    ?>
    <tr>
    <td><?php echo '<a href="Modification.php?NumLien=' . $Tab['NumLien'] . '">'; ?>Modifier</a></td>
    <td><?php echo '<a href= "Accueil.php?NumLien=' . $Tab['NumLien'] . '" onclick="if ( !confirm(\'Etes-vous sur de vouloir supprimer ?\')) { return false; }">'; ?>Supprimer</a></td>
    <td><input type='checkbox' name="Verif[]" value=<?php echo $Tab['NumLien'];?> id="box<?php echo $nb;?>" align="center"/></td>	
    <td></td>
    <td style="width:150px"></td>
    <td style="width:150px"></td>
    <td style="width:150px"></td>
    <td style="width:150"px;""></td>
    <td><?php echo $Tab['Contact'];?></td>
    <td><?php echo $Tab['Commentaire'];?></td>
    </tr>
    <?php
    $nb++;
    }
    ?>
     
    </table>

  4. #4
    Membre confirmé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Janvier 2005
    Messages
    357
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 62
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Janvier 2005
    Messages : 357
    Points : 537
    Points
    537
    Par défaut
    Salut,

    Ben il te suffit de définir une largeur pour les td comme tu le fais pour les td vides.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <tr>
    <td style="width:150px"><?php echo '<a href="Modification.php?NumLien=' . $Tab['NumLien'] . '">'; ?>Modifier</a></td>
    <td style="width:150px"><?php echo '<a href= "Accueil.php?NumLien=' . $Tab['NumLien'] . '" onclick="if ( !confirm(\'Etes-vous sur de vouloir supprimer ?\')) { return false; }">'; ?>Supprimer</a></td>
    <td style="width:150px"><input type='checkbox' name="Verif[]" value=<?php echo $Tab['NumLien'];?> id="box<?php echo $nb;?>" align="center"/></td>	
    <td></td>
    <td style="width:150px"></td>
    <td style="width:150px"></td>
    <td style="width:150px"></td>
    <td style="width:150"px;""></td>
    <td><?php echo $Tab['Contact'];?></td>
    <td><?php echo $Tab['Commentaire'];?></td>
    </tr>
    Si tu ne mets rien le navigateur mettra la longueur qui permet l'affichage au mieux et de l'un à l'autre la politique d'affichage par défaut peut varier

  5. #5
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Février 2008
    Messages
    59
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 59
    Points : 28
    Points
    28
    Par défaut
    En faite les td vide ne le sont pas j'ai juste enlever le code php qui les remplie car il etai tro long, c'est juste les td qui ne font pas la taille que je leur es imposer
    voila le code mais la taille ne fait pas se que je lui demande
    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
    <table id= "Table" width= 50% >
    <table border=1 align="center" cellpadding="0" cellspacing="0">
     
    <tr> 
    <th>Modifier</th>
    <th>Supprimer</th>
    <th>Verifier<br><br>Tous&nbsp;<input type='checkbox'  value="checkbox" onclick="CheckAllBox(this.checked);" /></th>
     
    <th>Partenaire<br><input name='Submit1' type='Submit' value="+">&nbsp;<input name='Submit2' type='Submit' value="-"><br><br>
    <input name='Text1' type='Text'/>&nbsp;<input id ="un" name='Submit15' type='Submit' value="GO"></th>
     
    <th>Page Sprice<br><input name='Submit3' type='Submit' value="+">&nbsp;<input name='Submit4' type='Submit' value="-"><br><br>
    <input name='Text2' type='Text'/>&nbsp;<input id ="deux" name='Submit16' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit5' type='Submit' value="+">&nbsp;<input name='Submit6' type='Submit' value="-"><br><br>
    <input name='Text3' type='Text'/>&nbsp;<input id ="trois" name='Submit17' type='Submit' value="GO"></th>
     
    <th>Page partenaire<br><input name='Submit7' type='Submit' value="+">&nbsp;<input name='Submit8' type='Submit' value="-"><br><br>
    <input name='Text4' type='Text'/>&nbsp;<input id ="quatre" name='Submit18' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit9' type='Submit' value="+">&nbsp;<input name='Submit10' type='Submit' value="-"><br><br>
    <input name='Text5' type='Text'/>&nbsp;<input id ="cinq" name='Submit19' type='Submit' value="GO"></th>
     
    <th>Contact<br><input name='Submit11' type='Submit' value="+">&nbsp;<input name='Submit12' type='Submit' value="-"><br><br>
    <input name='Text6' type='Text'/>&nbsp;<input id ="six" name='Submit20' type='Submit' value="GO"></th>
     
    <th>Commentaire<br><input name='Submit13' type='Submit' value="+">&nbsp;<input name='Submit14' type='Submit' value="-"><br><br>
    <input name='Text7' type='Text'/>&nbsp;<input id ="sept" name='Submit21' type='Submit' value="GO"></th>
    </tr>
    <?phP 
    $nb = 0;
    while ($Tab= mysql_fetch_array($result))
    	{
    ?>
    <tr>
    <td><?php echo '<a href="Modification.php?NumLien=' . $Tab['NumLien'] . '">'; ?>Modifier</a></td>
    <td><?php echo '<a href= "Accueil.php?NumLien=' . $Tab['NumLien'] . '" onclick="if ( !confirm(\'Etes-vous sur de vouloir supprimer ?\')) { return false; }">'; ?>Supprimer</a></td>
    <td style="width:50px"><input type='checkbox' name="Verif[]" value=<?php echo $Tab['NumLien'];?> id="box<?php echo $nb;?>" align="center"/></td>	
    <td style="width:150px"><?php echo $Tab['NomPartenaire'];?></td>
    <td style="width:150px"><?php echo $Tab['LibelleLienSprice'];?></td>
    <td style="width:150px"><?php echo htmlentities($Tab['CodeLienSprice']);?></td>
    <td style="width:150px"><?php echo $Tab['LibelleLienPartenaire'];?></td>
    <td style="width:150"px;""><?php echo htmlentities($Tab['CodeLienPartenaire']);?></td>
    <td style="width:100px"><?php echo $Tab['Contact'];?></td>
    <td style="width:100px"><?php echo $Tab['Commentaire'];?></td>
    </tr>
    <?php
    $nb++;
              }
    ?>
    </table>

  6. #6
    Nouveau membre du Club
    Inscrit en
    Octobre 2007
    Messages
    27
    Détails du profil
    Informations personnelles :
    Âge : 51

    Informations forums :
    Inscription : Octobre 2007
    Messages : 27
    Points : 33
    Points
    33
    Par défaut
    <td style="width:150"px;"">

    Erreur? et 150pxl should be %

  7. #7
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Février 2008
    Messages
    59
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 59
    Points : 28
    Points
    28
    Par défaut
    oui c'étais une erreur que j'ai corriger mais sa marche toujour pas!

  8. #8
    Inactif   Avatar de Deallyra
    Profil pro
    Étudiant
    Inscrit en
    Février 2007
    Messages
    1 997
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2007
    Messages : 1 997
    Points : 1 769
    Points
    1 769
    Par défaut
    envoies le nouveau code onegai

  9. #9
    Nouveau membre du Club
    Profil pro
    Étudiant
    Inscrit en
    Février 2008
    Messages
    59
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Février 2008
    Messages : 59
    Points : 28
    Points
    28
    Par défaut
    oneiga? yep jtenvoie sa mimi
    cette fois j'envoie le code de mon tableau en entier(peutre que se seras plus clair)
    et aussi les colonnes qui pose un gros probleme sont les colonnes (5,6,7,8)
    j'ai une colonne qui prend carement toute la taille de mon ecran(voir screen premier message)
    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
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    <table id= "Table" border=1 align="center" cellpadding="0" cellspacing="0" STYLE="width:2000px;" >
    <tr> 
    <th>Modifier</th>
    <th>Supprimer</th>
    <th>Verifier<br><br>Tous&nbsp;<input type='checkbox'  value="checkbox" onclick="CheckAllBox(this.checked);" /></th>
     
    <th>Partenaire<br><input name='Submit1' type='Submit' value="+">&nbsp;<input name='Submit2' type='Submit' value="-"><br><br>
    <input name='Text1' type='Text'/>&nbsp;<input id ="un" name='Submit15' type='Submit' value="GO"></th>
     
    <th>Page Sprice<br><input name='Submit3' type='Submit' value="+">&nbsp;<input name='Submit4' type='Submit' value="-"><br><br>
    <input name='Text2' type='Text'/>&nbsp;<input id ="deux" name='Submit16' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit5' type='Submit' value="+">&nbsp;<input name='Submit6' type='Submit' value="-"><br><br>
    <input name='Text3' type='Text'/>&nbsp;<input id ="trois" name='Submit17' type='Submit' value="GO"></th>
     
    <th>Page partenaire<br><input name='Submit7' type='Submit' value="+">&nbsp;<input name='Submit8' type='Submit' value="-"><br><br>
    <input name='Text4' type='Text'/>&nbsp;<input id ="quatre" name='Submit18' type='Submit' value="GO"></th>
     
    <th>Code du lien<br><input name='Submit9' type='Submit' value="+">&nbsp;<input name='Submit10' type='Submit' value="-"><br><br>
    <input name='Text5' type='Text'/>&nbsp;<input id ="cinq" name='Submit19' type='Submit' value="GO"></th>
     
    <th>Contact<br><input name='Submit11' type='Submit' value="+">&nbsp;<input name='Submit12' type='Submit' value="-"><br><br>
    <input name='Text6' type='Text'/>&nbsp;<input id ="six" name='Submit20' type='Submit' value="GO"></th>
     
    <th>Commentaire<br><input name='Submit13' type='Submit' value="+">&nbsp;<input name='Submit14' type='Submit' value="-"><br><br>
    <input name='Text7' type='Text'/>&nbsp;<input id ="sept" name='Submit21' type='Submit' value="GO"></th>
    </tr>
     
    <?php
    $bool = true;
    $nb = 0;
    while ($Tab= mysql_fetch_array($result))
    	{
    ?>
    <tr>
    <td style="width:50px;"><?php echo '<a href="Modification.php?NumLien=' . $Tab['NumLien'] . '">'; ?>Modifier</a></td>
    <td style="width:50px;"><?php echo '<a href= "Accueil.php?NumLien=' . $Tab['NumLien'] . '" onclick="if ( !confirm(\'Etes-vous sur de vouloir supprimer ?\')) { return false; }">'; ?>Supprimer</a></td>
    <td style="width:50px;"><input type='checkbox' name="Verif[]" value=<?php echo $Tab['NumLien'];?> id="box<?php echo $nb;?>" align="center"/></td>	
    <td style="width:80px;"><?php echo $Tab['NomPartenaire'];?></td>
     
    <td style="width:150px;">
    <?php 
    if (isset($_POST['Verification']) &&  isset($_POST['Verif']))
       {
       if (in_array($Tab['NumLien'], $_POST['Verif']))
    	    {
    	    $Test = $Tab['LibelleLienSprice'];
            if (!$fp = @fopen(''.$Test.'',"r"))   //l
              {
              echo '<span style="color:red;">'.$Test.'</span>';
              $bool=false;
              }
            else 
              {
              echo '<span style="color:green;">'.$Test.'</span>';
              $bool=true;
              }
    	    }  
      else
      {
      echo $Tab['LibelleLienSprice'];	
      }
      }
    else
      {	 
      echo $Tab['LibelleLienSprice'];
      }
    ?>
     
    </td>
    <td style="width:150px;">
    <?php      
    if (isset($_POST['Verification']) && isset($_POST['Verif']) )
      {
      if($bool==true)
        {
        $verif = $_POST['Verif'];
        if (in_array($Tab['NumLien'], $_POST['Verif']))
    	  {
    	  $Test = $Tab['LibelleLienSprice'];
          $fp = @fopen(''.$Test.'',"r"); //lecture du fichier
          while (!feof($fp)) //on parcourt toutes les lignes
    	   { 
           $page .= fgets($fp, 4096); // lecture du contenu de la ligne
           }
             if (preg_match("`".preg_quote($Tab[CodeLienSprice])."`i",$page,$regs)!=0)
                {
                echo '<span style="color:green;">'.htmlentities($Tab['CodeLienSprice']).'</span>';	
                }
             else
                {
                echo '<span style="color:red;">'.htmlentities($Tab['CodeLienSprice']).'</span>';	
                }
          fclose($fp);
          }
        else
          {
           echo htmlentities($Tab['CodeLienSprice']);	
          }
        }
      else
        {
        echo '<span style="color:red;">'.htmlentities($Tab['CodeLienSprice']).'</span>';	
        }	
      }
    else
      {
      echo htmlentities($Tab['CodeLienSprice']);
      }
    ?>
    </td>
     
    <td style="width:150px;">
    <?php     
    if (isset($_POST['Verification']) && isset($_POST['Verif']))
    {
    	if (in_array($Tab['NumLien'], $_POST['Verif']))
    	 {
    	  $Test = $Tab['LibelleLienSprice'];
    if (!$fp = @fopen(''.$Test.'',"r")) 
    {
    echo '<span style="color:red;">'.$Tab['LibelleLienPartenaire'].'</span>';
    $bool=false;
    }
    else 
    {
    echo '<span style="color:green;">'.$Tab['LibelleLienPartenaire'].'</span>';
    $bool=true;
    }
    }
    else
    	 {
    	echo $Tab['LibelleLienPartenaire'];	
    	}	
     
    }
    else
    {
     echo $Tab['LibelleLienPartenaire'];
    }
    ?>
    </td>
    <td style="width:150px;">
    <?php       
    if (isset($_POST['Verification']) && isset($_POST['Verif']))
    {
    if($bool==true)
    {
    if (in_array($Tab['NumLien'], $_POST['Verif']))
    	 {
    	  $Test = $Tab['LibelleLienSprice'];
     
     $fp = @fopen(''.$Tab['LibelleLienPartenaire'].'',"r"); //lecture du fichier
    while (!feof($fp)) { //on parcourt toutes les lignes
      $page .= fgets($fp, 4096); // lecture du contenu de la ligne
    }
    if (preg_match("`".preg_quote($Tab[CodeLienPartenaire])."`i",$page,$regs)!=0)
    {
    echo '<span style="color:green;">'.htmlentities($Tab['CodeLienPartenaire']).'</span>';	
    }
    else
    {
    echo '<span style="color:red;">'.htmlentities($Tab['CodeLienPartenaire']).'</span>';	
    }
    fclose($fp);
    }
    else
    {
    echo htmlentities($Tab['CodeLienPartenaire']);	
    }
    }
    else
    {
    echo '<span style="color:red;">'.htmlentities($Tab['CodeLienPartenaire']).'</span>';	
    }
     
    }
    else
    {	
    echo htmlentities($Tab['CodeLienPartenaire']);
    }
    ?>
    </td>
     
    <td style="width:150px;"><?php echo $Tab['Contact'];?></td>
    <td style="width:150px;"><?php echo $Tab['Commentaire'];?></td>
    </tr>
    <?php
    $nb++;
    }
    ?>
     
    </table>

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

Discussions similaires

  1. [CSS 2.1] page-break-before dans un tableau sous Firefox
    Par tithou dans le forum Mise en page CSS
    Réponses: 2
    Dernier message: 02/10/2012, 16h50
  2. Problème affichage tableau sous firefox
    Par lightwarior dans le forum Balisage (X)HTML et validation W3C
    Réponses: 0
    Dernier message: 25/04/2010, 16h08
  3. Centrer un tableau sous FireFox
    Par Invité dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 29/05/2008, 13h16
  4. probleme iframe (dans un tableau) sous firefox
    Par jamesleouf dans le forum Balisage (X)HTML et validation W3C
    Réponses: 0
    Dernier message: 06/05/2008, 12h04
  5. aligner un tableau sous firefox
    Par stars333 dans le forum Mise en page CSS
    Réponses: 6
    Dernier message: 14/05/2007, 11h58

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