- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Individual flex item along a baseline alignment of one item</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room">
<div class="rug text-rudolf">
<p>Rudolf</p>
</div>
<div class="rug text-muffin">
<p>Muffin</p>
</div>
<div class="rug text-simba">
<p>Simba</p>
</div>
</div>
</body>
</html>
CSS
.room {
display: flex;
align-items: center;
}
You’ve gone to a different page
Goalscompleted
0
Align the flex items in accordance with the text baseline:
- For Simeon’s rug (
.text-simba
), - for Muffin’s rug (
.text-muffin
).
Comments