Je rencontre un problème concernant la mise en page mon tableau. Je ne comprends pas pourquoi il ne veut pas utiliser 100% de la largeur que le navigateur lui fournit, il occupe seulement environ 50% de cet espace. Je vous transmets mon code :d 'abord le CSS puis le tableau.
<style type="text/css">
#recup{overflow:hidden;position:absolute;height:41px;top:70px;z-index:2;}
#table2{overflow:auto;position:absolute;bottom:152px;top:70px;z-index:1;opacity:1;z-index:1}
</style type="text/css">
<div id="recup">
<table align="left" border="1" width="99%" style ="background-color:#EFFFFF;" class="sortable" >
<thead>
<tr style="height:38px" align="center">
<th width="60px" style="border:2px solid black;font-size:0.8em;"><b>Date</b></th>
<th style="border:2px solid black;font-size:0.8em;"><b>Heure de debut</b></th>
<th style="border:2px solid black;font-size:0.8em;"><b>Heure de fin</b></th>
<th style="border:2px solid black;font-size:0.8em;"><b>Entreprise</b></th>
<th style="border:2px solid black;font-size:0.8em;"><b>Poste Source</b></th>
<th style="border:2px solid black;font-size:0.8em;"><b>Duree</b></th>
<?php if (isset($_SESSION['pseudo']) && isset($_SESSION['pass'])){ ?>
<th colspan="2" style="border:2px solid black;font-size:0.8em;"><b>Modifier / Supprimer</b></th> <?php } ?>
</tr>
</thead><?php
$strSQL = "SELECT * FROM presences_postes";
$rs = mysql_query($strSQL);
while($row = mysql_fetch_array($rs)) { ?>
<tbody>
<tr border="1" align="center">
<?php $decompo1 = explode("-",$row['Date']); ?>
<td style="font-size:0.8em;"><?php echo $decompo1[2]."-".$decompo1[1]."-".$decompo1[0]."<br/>";?></td>
<?php $decompo2 = explode(":",$row['Heure_Debut']); ?>
<td style="font-size:0.8em;"><?php echo $decompo2[0].":".$decompo2[1]."<br/>";?></td>
<?php $decompo3 = explode(":",$row['Heure_Fin']); ?>
<td style="font-size:0.8em;"><?php echo $decompo3[0].":".$decompo3[1]."<br/>";?></td>
<td style="font-size:0.8em;"><?php echo $row['Entreprise']."<br/>";?></td>
<td style="font-size:0.8em;"><?php echo $row['Poste_Source']."<br/>";?></td>
<?php $decompo4 = explode(":",$row['Duree']); ?>
<td style="font-size:0.8em;"><?php echo $decompo4[0].":".$decompo4[1]."<br/>";?></td>
<?php if (isset($_SESSION['pseudo']) && isset($_SESSION['pass'])){
$id_mod = $row['id']; ?>
<td><a href="?id_presen=<?php echo $id_mod?>#index">Modifier</a></td>
<td><a href="delete.php?id_presen=<?php echo $id_mod?>"><img src="img/bouton-modifier.png" width="20" height="20"</a></td>
<?php }
}
?>
</tr>
</tbody>
</table>
Voici ce que ça donne :
Alors que voilà ce que ça donne sur une autre page alors que j'utilise le même procédé

