- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Selfish alignment, align-self</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room">
<div class="rug rudolf"></div>
<div class="rug muffin"></div>
<div class="rug simba"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
justify-content: center;
align-items: stretch;
}
You’ve gone to a different page
Goalscompleted
0
- Align Rudolf’s rug (
.rudolf
) at the start of the cross axis, - align Muffin’s rug (
.muffin
) at the end of the cross axis, - and finally align Simeon’s rug (
.simba
) in the center of the axis (center
).
Comments