CSS - właściwości order


order

kod wynik kodu
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<title>webatak.pl - CSS - właściwości generowanej treści</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.flex-container {
  height: 240px;
  width: 320px;
  font-size: 30px;
  border: 2px solid black;
  display: flex;
}
.flex-container div {
  width: 80px;
}
.item1 {
  background: yellow;
  order: 2;
}
.item2 {
  background: orange;
  order: 3;
}
.item3 {
  background: red;
  order: 1;
}
</style>
</head>
<body>

<h2>order: integer</h2>
<div class="flex-container">
  <div class="item1">1</div>
  <div class="item2">2</div>
  <div class="item3">3</div>
</div>
</body> </html>