bonjour
en cherchant comment aligner des bloc je suis tombé sur cette page :
http://www.developpez.net/forums/d85...-div-l-cote-l/
les explications de xess91 m’avaient l'air claires et sympa, mais après plusieurs tests ça ne fonctionne pas chez moi : le dernier bloc n'est pas sur la même ligne
j'ai carrément essayé sur une page vierge, en copiant collant son code :
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 <div style="width:600px;" class="premier"> <!--première ligne--> <div> <div style="float:left;width:320px;">block1</div> <div style="float:left;width:320px;margin-left:320px;">block2</div> <div style="width:320px;margin-left:640px;">block3</div> </div> <!--deuxième ligne en argument de la propriété clear tu peux mettre left aussi--> <div style="clear:both;"> <div style="float:left;width:320px;">block1</div> <div style="float:left;width:320px;margin-left:320px;">block2</div> <div style="width:320px;margin-left:640px;">block3</div> </div> <div style="width:300px;" class="article_bas">
j'ai juste rajouté le 1er conteneur
auriez vous une idée ?
merci
Partager