- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Multi-line flex containers and flex-shrink</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="spot">
<div class="skate racoon-pink"></div>
<div class="skate racoon-gray"></div>
<div class="skate racoon-orange"></div>
</div>
</body>
</html>
CSS
.spot {
display: flex;
flex-wrap: nowrap;
width: 450px;
height: auto;
}
.skate {
flex-shrink: 1;
flex-basis: 100px;
}
You’ve gone to a different page
Goalscompleted
0
- Increase the basic size of all skateboards to
500px
. - Configure flex items to overflow onto a new line in the
.spot
block. - Then assign a shrinkage factor of zero to all skateboards.
Comments