Tableau Html et CSS
Résolu
r3m1
Messages postés
61
Statut
Membre
-
r3m1 Messages postés 61 Statut Membre -
r3m1 Messages postés 61 Statut Membre -
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 !
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:
- Tableau Html et CSS
- Tableau word - Guide
- Tableau ascii - Guide
- Trier un tableau excel - Guide
- Tableau croisé dynamique - Guide
- Editeur html - Télécharger - HTML