Edit This Code:
See Result »
<!DOCTYPE html> <html> <head> <style> body { direction: rtl; } .flex-container { display: -webkit-flex; display: flex; width: 400px; height: 250px; background-color: lightgrey; } .flex-item { background-color: cornflowerblue; width: 100px; height: 100px; margin: 10px; } </style> </head> <body> <div class="flex-container"> <div class="flex-item">flex item 1</div> <div class="flex-item">flex item 2</div> <div class="flex-item">flex item 3</div> </div> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_flexbox_flexline_rtl by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:02:59 GMT --> </html>
Result: