I am building a web page layout using blocks set to display: table-cell. Everything is working fine, but I cannot flip the cells (change their order) in a row and wondering if there is such possibility or some trick what I can use to achieve this.
I need to achieve this using only CSS and display: table-cell :)
Thanks in advance for any suggestions.
HTML
<div class="dtc">
<div>Item1</div>
<div>Item2</div>
</div>
CSS
.dtc{
display: table;
width: 100%;
}
.dtc > *{
display: table-cell;
}
Current table:
+-------+-------+
| Item1 | Item2 |
+-------+-------+
Desired result:
+-------+-------+
| Item2 | Item1 |
+-------+-------+