| <title>Test Multiple Floats for a Single Line</title> |
| div { width: 100px; height:30px; margin:0; padding:0; border:none; } |
| .container { width:400px; } |
| .left { float:left; background-color:orange; } |
| .a { float:right; background-color:blue; } |
| .b { float:right; background-color:yellow; } |
| .middle { display:inline-block; background-color:green; } |
| <div class="container"><div class="left"></div><div class="middle"></div><div class="floater a"></div><div class="floater b"></div></div> |
| <div class="middle"></div> |
| <div class="floater a"></div> |
| <div class="floater b"></div> |
| <!-- Order should not matter --> |
| <div class="floater a"></div> |
| <div class="middle"></div> |
| <div class="floater b"></div> |