Salut
Je suis nouveau, et je trouve enfin l'endroit que je cherchais.
Je m'initie au css et voudrais savoir comment on fait pour afficher 5 blocs du type :
.bloc {
text-align: center ;
background-color: green;
height: 50px;
width: 100px;
}
les uns à côté des autres, mais surtout uniformément répartis sur la largeur de la page.
<div class="bloc">Un</div>
<div class="bloc">Deux</div>
<div class="bloc">Trois</div>
<div class="bloc">Quatre</div>
<div class="bloc">Cinq</div>
En fait je voudrais le même effet que :
<table cellpadding="10" cellspacing="0" width="100%" >
<tr>
<td width="20%" align=center>
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Un</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Deux</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Trois</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Quatre</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Cinq</td>
</tr>
</table>
</td>
</tr>
</table>
merci de votre aide
faidit
Je suis nouveau, et je trouve enfin l'endroit que je cherchais.
Je m'initie au css et voudrais savoir comment on fait pour afficher 5 blocs du type :
.bloc {
text-align: center ;
background-color: green;
height: 50px;
width: 100px;
}
les uns à côté des autres, mais surtout uniformément répartis sur la largeur de la page.
<div class="bloc">Un</div>
<div class="bloc">Deux</div>
<div class="bloc">Trois</div>
<div class="bloc">Quatre</div>
<div class="bloc">Cinq</div>
En fait je voudrais le même effet que :
<table cellpadding="10" cellspacing="0" width="100%" >
<tr>
<td width="20%" align=center>
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Un</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Deux</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Trois</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Quatre</td>
</tr>
</table>
</td>
<td width="20%" align="center">
<table width="100" bgcolor="green">
<tr>
<td>
<p align="center">Cinq</td>
</tr>
</table>
</td>
</tr>
</table>
merci de votre aide
faidit