- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The item shrinkage factor, flex-shrink</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="spot spot-small spot-1">
<div class="skate racoon-green"></div>
<div class="skate racoon-brown"></div>
</div>
<div class="spot spot-small spot-2">
<div class="skate racoon-gray"></div>
<div class="skate racoon-orange"></div>
<!-- Blue Raccoon
<div class="skate racoon-blue"></div>
-->
</div>
</body>
</html>
CSS
.spot {
display: flex;
width: 450px;
}
.spot-1 .skate {
flex-basis: 150px;
}
.spot-1 .racoon-brown {
}
.spot-2 .skate {
flex-basis: 150px;
}
You’ve gone to a different page
Goalscompleted
0
- Assign
300px
as the basic size of flex items to the skateboards in the first.spot-1 .skate
clearing. - Add a skateboard with a Blue Raccoon to the second clearing.
- Then assign a shrinkage factor of zero to the Brown Raccoon’s skateboard (
.racoon-brown
) - as well as to all of the other skateboards in the second clearing.
Comments