Tableau Html et CSS

Résolu/Fermé
r3m1 Messages postés 53 Date d'inscription dimanche 28 février 2010 Statut Membre Dernière intervention 30 janvier 2016 - 5 mars 2010 à 12:21
r3m1 Messages postés 53 Date d'inscription dimanche 28 février 2010 Statut Membre Dernière intervention 30 janvier 2016 - 6 mars 2010 à 07:25
Bonjour,

J'ai un petit problème avec un tableau en html.

Mon code ressemble à :

<div id="content">
<div id="main2">
<div id="welcome">

<table class="tableau">
<tr>
<td width=230px style="min-height:800px">

<div id="login" class="boxed">
<h2 class="title">Emploi du temps</h2>
<li><a href="index.php?mod=accueilSecr&mod2=saisieEdt"><img src="images/fleche.png" height="20" width="20" alt="" id="add"/>Saisir</a></li>
<li><a href="index.php?mod=accueilSecr&mod2=modifEdt"><img src="images/fleche.png" height="20" width="20" alt="" id="add"/>Modifier</a></li>
<li><a href="index.php?mod=accueilSecr&mod2=importEdt"><img src="images/fleche.png" height="20" width="20" alt="" id="add"/>Importer</a></li>
</div>

</td>
<td width=230px style="min-height:800px">
.
.
.
</td>
.
.
.
</div></div></div>

Et je voudrai aligner le contenu des 3 cellules vers le haut.
J'ai donc essayé :

.tableau {
vertical-align:top;

}

.tableau.tr{

vertical-align:top;
}

.tableau.td{

vertical-align:top;
}

Mais aucune de ces 3 choses ne fonctionne.
ça ne marche que quand je met :
td
{
vertical-align:top;
}

Mais je veux que l'alignement se fasse juste sur ce tableau.

Comment faire, merci !
A voir également:

2 réponses

Defouille Messages postés 388 Date d'inscription mercredi 13 janvier 2010 Statut Membre Dernière intervention 15 novembre 2011 54
5 mars 2010 à 14:08
Bonjour,

essaye avec :

.tableau td{
    vertical-align:top;
} 


si tu mets un "." avant "td" ca veut dire les éléments de la classe "td" qui sont dans un élément de la classe "tableau".
1
r3m1 Messages postés 53 Date d'inscription dimanche 28 février 2010 Statut Membre Dernière intervention 30 janvier 2016 7
6 mars 2010 à 07:25
Bonjour Defouille,

Merci beaucoup, ça marche. ;)

Bon weekend.
1