Tableau

Fermé
Guillaume - 31 déc. 2018 à 12:51
inspiring Messages postés 1813 Date d'inscription vendredi 28 janvier 2011 Statut Membre Dernière intervention 31 décembre 2018 - 31 déc. 2018 à 14:19
Bonjour,
J'ai fait un tableau (dont le code est ci-dessous) mais il est horrible... J'aimerai savoir si c'est possible de le rendre plus joli? Si oui, comment?
Je pensais peut être faire en sorte que les cases occupent toutes la largueur (qu'il y ait 1 ou 9 données)


<table border=1 width=70% align="center" cellspacing=0 cellpadding=1 id="1">
<tr><th>Mars 2019:</th><th>/</th></tr>

<tr><th>Février 2019:</th><th>/</th></tr>

<tr><th>Janvier 2019:</th><th>/</th></tr>

<tr><th>Décembre 2018:</th><th><a href="1218001.html">1218001</a></th><th><a href="1218002.html">1218002</a></th><th><a href="1218003.html">1218003</a></th><th><a href="1218004.html">1218004</a></th></tr>

<tr><th>Novembre 2018:</th><th><a href="1118001.html">1118001</a></th><th><a href="1118002.html">1118002</a></th><th><a href="1118003.html">1118003</a></th><th><a href="1118004.html">1118004</a></th><th><a href="1118005.html">1118005</a></th><th><a href="1118006.html">1118006</a></th><th><a href="1118007.html">1118007</a></th><th><a href="1118008.html">1118008</a></th><th><a href="1118009.html">1118009</a></th></tr>

<tr><th>Octobre 2018:</th><th><a href="1018001.html">1018001</a></th><th><a href="1018002.html">1018002</a></th></tr>

<tr><th>Septembre 2018:</th><th><a href="0918001.html">0918001</a></th><th><a href="0918002.html">0918002</a></th><th><a href="0918003.html">0918003</a></th><th><a href="0918004.html">0918004</a></th></tr>

<tr><th>Aout 2018:</th><th><a href="0818001.html">0818001</a></th><th><a href="0818002.html">0818002</a></th></tr>

<tr><th>Juillet 2018:</th><th><a href="0718001.html">0718001</a></th><th><a href="0718002.html">0718002</a></th><th><a href="0718003.html">0718003</a></th><th><a href="0718004.html">0718004</a></th><th><a href="0718005">0718005</a></th></tr>

<tr><th>Juin 2018:</th><th><a href="0618001.html">0618001</a></th><th><a href="0618002.html">0618002</a></th><th><a href="0618003.html">0618003</a></th></tr>

<tr><th>Mai 2018:</th><th><a href="0518001.html">0518001</a></th><th><a href="0518002.html">0518002</a></th><th><a href="0518003.html">0518003</a></th><th><a href="0518004.html">0518004</a></th><th><a href="0518005">0518005</a></th></tr>
</table>

1 réponse

inspiring Messages postés 1813 Date d'inscription vendredi 28 janvier 2011 Statut Membre Dernière intervention 31 décembre 2018 265
31 déc. 2018 à 14:19
Bonjour,

pour obtenir des largeurs de colonnes identiques, il suffit d'un ajout de CSS:

<table border=1 width=70% align="center" cellspacing=0 cellpadding=1 id="1" style="table-layout:fixed"> 


un peu plus d'infos si besoin:
https://www.w3schools.com/cssref/pr_tab_table-layout.asp
0