JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper">
<div class="foo"></div> <!-- first in the markup, last when being rendered due to float: right; -->
<div></div>
<div></div>
</div>
CSS
body {
padding: 20px; /* To see what is going on */
text-align: center;
}
div {
border: 1px solid red; /* To see what is going on */
}
.wrapper {
display: inline-block;
text-align: left; /* Resetting the text alignment */
vertical-align: top; /* Making sure inline-block element align to the top */
/* Inline-block fix for IE7 and below */
zoom: 1;
*display: inline;
}
.wrapper div {
float: left;
height: 200px; /* To see what is going on */
margin: 10px; /* To see what is going on */
width: 200px; /* To see what is going on */
}
.wrapper .foo {
border-color: blue; /* To see what is going on */
float: right;
}