สร้าง Flex Container ด้วย display: flex แล้ววาง Flex Items ไว้ข้างใน
ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<style>
.mycontainer {
display: flex;
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>
คำอธิบาย: Q1-Q6 คือ Flex Items ทั้งพื้นที่ส้มคือ Flex Container Items จะเรียงซ้าย-ขวา (Default: flex-direction: row)