Bonjour à tous.
Voilà je n'arrive pas à faire centrer mon menu CSS. Je l'ai fait à l'aide d'un tableau à 1 lignes et 8 colonnes. J'ai dons mis que le <table> devait faire 100% de width, et chaque <td> 12.4%.
Voici mes codes :
Modifié par Fer2Lance (15 Oct 2010 - 20:32)
      
      
    Voilà je n'arrive pas à faire centrer mon menu CSS. Je l'ai fait à l'aide d'un tableau à 1 lignes et 8 colonnes. J'ai dons mis que le <table> devait faire 100% de width, et chaque <td> 12.4%.
Voici mes codes :
<div id="menu">
<table>
<tr>
	<td id="td1"><a href="index.html" style="display: block; height:auto; width:100%;">Acceuil</a></td>
	<td id="td2"><a href="presentation.html" style="display: block; height: auto; width: 100%;">Présentation</a></td>
	<td id="td3"><a href="membres.html" style="display: block; height: auto; width: 100%;">Membres</a></td>
	<td id="td4"><a href="publications.html" style="display: block; height: auto; width: 100%;">Publications</a></td>
	<td id="td5"><a href="seminaire.html" style="display: block; height: auto; width: 100%;">Séminaire</a></td>
	<td id="td6"><a href="stages.html" style="display: block; height: auto; width: 100%;">Stages</a></td> 
	<td id="td7"><a href="contact.html" style="display: block; height: auto; width: 100%;">Contact</a></td> 
	<td id="td8" class="actif8" ><a href="liens.html" style="display: block; height: auto; width: 100%;">Liens</a></td>
</tr>
</table>
  </div>#menu {
	color : black;
	background-color :#0091ac ;
	margin:0 auto;
	height:auto;
	width:100%;
	padding-top:0;
	padding-bottom:0;
	padding-left:2%;
	padding-right:2%;
	border :1px;
	border-color:black;
	}
table
{
   border-collapse: collapse;
   width:100%;
   display:block;
   height:auto;
}
td {
	border : 1px solid black;
	background-color:white;
	text-align: center;
	font-family : Verdana,Arial,Helvetica,sans-serif;
	width:12.4%;
	}Modifié par Fer2Lance (15 Oct 2010 - 20:32)
 
  
  
  :
  :  
 