align-items প্রোপার্টিতে flex-start মান ব্যবহার করে ফ্লেক্স আইটেমগুলো উপরে অ্যালাইন করুন।
উদাহরণ
<!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; height: 300px; background-color: red; align-items: flex-start; } .mycontainer > div { background-color: white; text-align: center; line-height: 60px; font-size: 30px; width: 100px; margin: 5px; } </style> </head> <body> <h1>কুইজ</h1> <div class = "mycontainer"> <div>Q1</div> <div>Q2</div> <div>Q3</div> <div>Q4</div> <div>Q5</div> </div> </body> </html>