- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The flex shorthand property</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;
}
.skate {
flex: 0 1 auto;
}
.racoon-orange {
}
You’ve gone to a different page
Goalscompleted
0
- Use the
flex
property to assign all.skate
skateboards a growth factor of0
, a shrinkage factor of1
, and a basic size of200px
. - Assign a growth factor of
1
, a shrinkage factor of0
, and a basic size of200px
to the Orange Raccoon, - and then change the shrinkage factor to
2
.
Comments