Hauteur maximale d'un tableau
Résolu
ne2sbeal
Messages postés
36
Date d'inscription
Statut
Membre
Dernière intervention
-
ne2sbeal Messages postés 36 Date d'inscription Statut Membre Dernière intervention -
ne2sbeal Messages postés 36 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Je souhaiterais fixer la taille maximale de mon tableau. Je m'explique je voudrais que meme si le tableau fait 500px de hauteur, il faut qu'il soit forcer à 100px en mettant un ascensseur par exemple.
Sauf que l'attribut Height ne marche pas avec les tables, donc je suis très embeté car mon tableau dépasse mon design et c'est très génant.
Je ne sais pas si quelqu'un a une solution mais en tout cas merci d'avance.
Je souhaiterais fixer la taille maximale de mon tableau. Je m'explique je voudrais que meme si le tableau fait 500px de hauteur, il faut qu'il soit forcer à 100px en mettant un ascensseur par exemple.
Sauf que l'attribut Height ne marche pas avec les tables, donc je suis très embeté car mon tableau dépasse mon design et c'est très génant.
Je ne sais pas si quelqu'un a une solution mais en tout cas merci d'avance.
A voir également:
- Hauteur maximale d'un tableau
- Tableau word - Guide
- Trier un tableau excel - Guide
- Tableau ascii - Guide
- Imprimer un tableau excel - Guide
- Tableau croisé dynamique - Guide
3 réponses
Bonjour,
Mets ton tableau dans une <div> conteneur sur laquelle tu vas fixer une hauteur (height:100px) et un (overflow-y:scroll).
Mets ton tableau dans une <div> conteneur sur laquelle tu vas fixer une hauteur (height:100px) et un (overflow-y:scroll).
Malheureusement ça ne fonctionne toujours pas
<div>
<table class="tab_recherche">
<tr>
<th class="code">Code</th>
<th>Nom</th>
<th>Prenom</th>
<th>Societe</th>
</tr><?php
//On affiche le résultat de la recherche dans un tableau
while($res_recherche = mysql_fetch_array($req_recherche))
{
?>
<tr onclick="document.location='menu_adherent.php?code=<?php echo $res_recherche['CodeClient'];?>&nom=<?php echo $res_recherche['Nom'];?>&prenom=<?php echo $res_recherche['Prenom'];?>'">
<td class="code"><?php echo $res_recherche['CodeClient']; ?></td>
<td class="nom-soc"><?php echo $res_recherche['Nom']; ?></td>
<td class="prenom"><?php echo $res_recherche['Prenom']; ?></td>
<td class="nom-soc"><?php echo $res_recherche['Societe']; ?></td>
</tr>
<?php
}
?></table>
</div>
<div>
<table class="tab_recherche">
<tr>
<th class="code">Code</th>
<th>Nom</th>
<th>Prenom</th>
<th>Societe</th>
</tr><?php
//On affiche le résultat de la recherche dans un tableau
while($res_recherche = mysql_fetch_array($req_recherche))
{
?>
<tr onclick="document.location='menu_adherent.php?code=<?php echo $res_recherche['CodeClient'];?>&nom=<?php echo $res_recherche['Nom'];?>&prenom=<?php echo $res_recherche['Prenom'];?>'">
<td class="code"><?php echo $res_recherche['CodeClient']; ?></td>
<td class="nom-soc"><?php echo $res_recherche['Nom']; ?></td>
<td class="prenom"><?php echo $res_recherche['Prenom']; ?></td>
<td class="nom-soc"><?php echo $res_recherche['Societe']; ?></td>
</tr>
<?php
}
?></table>
</div>