কম্পিউটার টিউটোরিয়াল

CSS flex-direction প্রপার্টির column-reverse মানের ভূমিকা


ফ্লেক্স আইটেমগুলো লম্বভাবে উল্টো ক্রমে সাজাতে flex-direction প্রপার্টির column-reverse মান ব্যবহার করুন।

উদাহরণ

column-reverse মান বাস্তবায়ন করতে নিচের কোডটি চালাতে পারেন:

<!DOCTYPE html> <html>    <head>       <style>          .mycontainer {             display: flex;             flex-direction: column-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>

  1. CSS justify-content: space-between মান ব্যবহার

  2. CSS flex-flow প্রোপার্টি

  3. CSS flex-basis প্রোপার্টি

  4. CSS flex-direction: row-reverse মান ব্যবহার