- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flex items and the block model</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="spot">
<div class="skate skate-1 racoon-green"></div>
<div class="skate skate-2 racoon-brown"></div>
<div class="skate skate-3 racoon-orange"></div>
</div>
</body>
</html>
CSS
.spot {
display: flex;
align-items: center;
justify-content: space-around;
}
.skate {
min-width: 40px;
min-height: 120px;
border-color: white;
border-top-left-radius: 75% 25%;
border-top-right-radius: 75% 25%;
border-bottom-right-radius: 75% 25%;
border-bottom-left-radius: 75% 25%;
background-clip: content-box;
}
.skate::after {
left: 50%;
margin-left: -10px;
}
.skate-2 {
}
You’ve gone to a different page
Goalscompleted
0
- Assign a width of
75px
and a height of300px
(there is no need to change the minimum size) to all of the.skate
skateboards on which the raccoons are sitting. - And make the inner margins on all sides
10px
. - And then assign
box-sizing: border-box
to the second skateboard.
Comments