J'ai un tableau de 9 colonnes, et dans le but de pouvoir masquer certaines colonnes, j'aimerai placer une petite image (comme une petite croix par exmple) en haut a gauche de chacune de mes colonnes a l'aide de CSS.
Je me disais que ca serait pas trop compliqué, mais apparement je suis rouillé; je n'y arrive pas
Pour le moment mon html ressemble a ca :
Code : Tout sélectionner
<table border=1><caption>Budget 2006 :</caption>
<colgroup>
<col width='60px'>
<col width='70px'>
<col width='1*'>
<col width='70px'>
</colgroup>
<tr>
<th><a href=#?cache=1 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a><a href='?tri=1'>Nature</a></th>
<th><a href=#?cache=1 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a><a href='?tri=2'>Fonction</a></th>
<th><a href=#?cache=2 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Libellé</th>
<th><a href=#?cache=4 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Budget Primitif</th>
<th><a href=#?cache=8 ><img src='style/images/croix.gif' alt='cacher cettete colonne'></a>Report </th>
<th><a href=#?cache=16 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Transfert Totaux</th>
<th><a href=#?cache=32 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Alloué Total</th>
<th><a href=#?cache=64 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Engagé</th>
<th><a href=#?cache=128 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Facturé</th>
<th><a href=#?cache=256 ><img src='style/images/croix.gif' alt='cacher cette colonne'></a>Disponible</th>
</th>
</table>
Code : Tout sélectionner
th img {
position : inline;
/*display : block;
float : left;
margin-top : -5px;*/
}Une idée pour me secourir ?
d'avance merci.