<!DOCTYPE html>
<html>
<head>
<style>
.main {
display: flex;
height: 100px;
border: 1px solid #c3c3c3;
}
.main div { flex-grow: 0; flex-shrink: 0; flex-basis: 40px; }
.main div:nth-of-type(2) { flex-basis: 80px; }
.main div:nth-of-type(4) { flex-basis: 60px; }
</style>
</head>
<body>
<h1>La propriété flex-basis</h1>
<p>Définissez la longueur initiale des éléments flexibles à 40 pixels, avec une exception; définissez la longueur initiale du deuxième élément flexible à:</p>
<div class="main">
<div style="background-color:red;">40px</div>
<div style="background-color:#1c87c9;">80px</div>
<div style="background-color:yellow;">40px</div>
<div style="background-color:#8ebf42;">60px</div>
<div style="background-color:lightgrey;">40px</div>
</div>
</body>
</html>