Salut
Pour faire des tabulations en CSS j'utilise cette méthode qui ma été donné il y a longtemps :
HTML :
CSS :
Quant je parle de tabulation je parle de ça :
Texte.................Tarif
Texte.................Tarif
Texte.................Tarif
Texte.................Tarif
J'aimerais savoir si depuis le temps il n'existerais pas une balise dédiée à ça (j'ai rien trouvé sur le net). Voir une méthode encore mieux que celle que je vous donne.
Pour faire des tabulations en CSS j'utilise cette méthode qui ma été donné il y a longtemps :
HTML :
Code:
<ul class="tabulation">
<li><span>TEXTE</span>
<span>tarif</span></li>
<li><span>TEXTE</span>
<span>tarif</span></li>
<li><span>TEXTE</span>
<span>tarif</span></li>
<li><span>TEXTE</span>
<span>tarif</span></li>
</ul>
Code:
ul.tabulation {
max-width: 40em;
padding: 0;
overflow-x: hidden;
list-style: none;
}
ul.tabulation li:before {
float: left;
width: 0;
white-space: nowrap;
content:
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . "
". . . . . . . . . . . . . . . . . . . . ";
}
ul.tabulation span:first-child,
ul.tabulation span + span {
background-color:$coul-fond-texte;
}
ul.tabulation span:first-child {
padding-right: 0.33em;
}
ul.tabulation span + span {
float: right;
padding-left: 0.33em;
}
Texte.................Tarif
Texte.................Tarif
Texte.................Tarif
Texte.................Tarif
J'aimerais savoir si depuis le temps il n'existerais pas une balise dédiée à ça (j'ai rien trouvé sur le net). Voir une méthode encore mieux que celle que je vous donne.





Commentaire