flex-direction: row-reverse মান ফ্লেক্স আইটেমগুলকে হরিজেন্টাল সাজায় কিন্তু ক্রম উল্টা (ডান থেকে বাম)।
উদাহরণ
নিচের কোডটি চালিয়ে row-reverse মান ব্যবহার দেখুন:
<!DOCTYPE html> <html>
<head>
<style>
.mycontainer {
display: flex;
flex-direction: row-reverse;
background-color: orange;
}
.mycontainer > div {
background-color: white;
text-align: center;
line-height: 40px;
font-size: 25px;
width: 100px;
margin: 5px;
}
</style>
</head>
<body>
<h1>Quiz</h1>
<div class="mycontainer">
<div>Q1</div>
<div>Q2</div>
<div>Q3</div>
<div>Q4</div>
<div>Q5</div>
<div>Q6</div>
</div>
</body>
</html>
ব্যাখ্যা: HTML-তে ক্রম Q1, Q2, Q3, Q4, Q5, Q6 থাকা সত্ত্বেও row-reverse দিয়ে সেগুলো ডান থেকে বামে: Q6, Q5, Q4, Q3, Q2, Q1 ক্রমে দেখাবে। RTL (Right-to-Left) ভাষা যেমন আরবি, হিব্রুের জন্য এটি উপযোগী।