Taille des colonne dans un tableau
mali_67
Messages postés
77
Statut
Membre
-
mali_67 Messages postés 77 Statut Membre -
mali_67 Messages postés 77 Statut Membre -
Bonjour,j'ai créer un formulaire composer d'un tableau, mon probleme est que je n'ariive pas a choisir la taille des colonne, les donnes qui sont dans mes colonne sont des URL, certaine etand longue, mon tableau s'allongue sur la largeur et je trouve sa trés embetent,
j'ai joint un screen de mon tableau afin que vous puissiez voir(1 colonne prend la taille entiere de mon ecran)
j'ai deja essayer de mettre dans mon css des champs
et les appeller dans mon formulaire par CLASS=celluleTableau
et j'ai aussi essayer de mettre style="width:150px" dans mes balise <td> ces 2 methode ne fonctionne pas
voici mon code qui ne fonctionne pas
j'ai joint un screen de mon tableau afin que vous puissiez voir(1 colonne prend la taille entiere de mon ecran)
j'ai deja essayer de mettre dans mon css des champs
celluleTableau
{
width:150px;
}
et les appeller dans mon formulaire par CLASS=celluleTableau
et j'ai aussi essayer de mettre style="width:150px" dans mes balise <td> ces 2 methode ne fonctionne pas
voici mon code qui ne fonctionne pas
<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 <input type='checkbox' value="checkbox" onclick="CheckAllBox(this.checked);" /></th>
<th>Partenaire<br><input name='Submit1' type='Submit' value="+"> <input name='Submit2' type='Submit' value="-"><br><br>
<input name='Text1' type='Text'/> <input id ="un" name='Submit15' type='Submit' value="GO"></th>
<th>Page Sprice<br><input name='Submit3' type='Submit' value="+"> <input name='Submit4' type='Submit' value="-"><br><br>
<input name='Text2' type='Text'/> <input id ="deux" name='Submit16' type='Submit' value="GO"></th>
<th>Code du lien<br><input name='Submit5' type='Submit' value="+"> <input name='Submit6' type='Submit' value="-"><br><br>
<input name='Text3' type='Text'/> <input id ="trois" name='Submit17' type='Submit' value="GO"></th>
<th>Page partenaire<br><input name='Submit7' type='Submit' value="+"> <input name='Submit8' type='Submit' value="-"><br><br>
<input name='Text4' type='Text'/> <input id ="quatre" name='Submit18' type='Submit' value="GO"></th>
<th>Code du lien<br><input name='Submit9' type='Submit' value="+"> <input name='Submit10' type='Submit' value="-"><br><br>
<input name='Text5' type='Text'/> <input id ="cinq" name='Submit19' type='Submit' value="GO"></th>
<th>Contact<br><input name='Submit11' type='Submit' value="+"> <input name='Submit12' type='Submit' value="-"><br><br>
<input name='Text6' type='Text'/> <input id ="six" name='Submit20' type='Submit' value="GO"></th>
<th>Commentaire<br><input name='Submit13' type='Submit' value="+"> <input name='Submit14' type='Submit' value="-"><br><br>
<input name='Text7' type='Text'/> <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>
A voir également:
- Taille des colonne dans un tableau
- Comment réduire la taille d'un fichier - Guide
- Tableau word - Guide
- Déplacer colonne excel - Guide
- Trier un tableau excel - Guide
- Dans le fichier, générez ce tableau automatiquement (tableau croisé dynamique ou table de pilote) à partir des quatre premières colonnes. - Guide