CSS:Exemple de positionnement flottant
Un article de WikiTuto.
[modifier]
Définition
<div style="float:right;border-style:solid;">droit n°1</div> <div style="float:right;border-style:solid;">droit n°2</div> <div style="float:left;border-style:solid;">gauche n°1</div> <div style="float:right;border-style:solid;">droit n°3</div> <div style="float:left;border-style:solid;">gauche n°2</div> <div style="float:right;border-style:solid;">droit n°4</div> <div style="float:left;border-style:solid;">gauche n°3</div>
ce qui donne ceci :
Ou encore ceci, quand la fenêtre est trop étroite :
La propriété clear (avec les valeurs both, right et left) a pour effet de terminer une série de flottants et faire recommencer le flux sur la ligne suivante.
[modifier]
Source
Dominique Gonzalez
[modifier]
Voir aussi
- Positionnement et affichage explications
- propriété clear
- Exemple de positionnement flottant
- Affichage



