- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The initial main size of flex item, flex-basis</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="spot">
<div class="skate racoon-orange"></div>
</div>
</body>
</html>
CSS
.spot {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.racoon-orange {
}
You’ve gone to a different page
Goalscompleted
0
- Assign a width of
300pxand a height of100pxto the Orange Raccoon’s skateboard. - Then assign it the basic size of
100%. - Then change the flow direction of the
.spotmain axis tocolumn.Notice how the width and height change when the axis is rotated due to the basic size that we assigned.
Comments