- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The vertical row of icons, part 2</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="subtle">
<div class="post">
<section>
<h1>A Day in the Life of a Cat</h1>
<p>Muffin woke on up in his cat bed very early that morning. The day promised to be eventful.</p>
<p>Due to this, he decided to work out on his chin-up bar.</p>
<p>The cat eventually tired himself out exercising, and he decided to relax a bit and watch TV.</p>
</section>
<aside>
<a href="#" class="soc-icon soc-icon-fb">fb</a>
<a href="#" class="soc-icon soc-icon-tw">tw</a>
<a href="#" class="soc-icon soc-icon-yo">yo</a>
</aside>
</div>
</body>
</html>
CSS
.post {
display: flex;
}
.post aside {
order: -1;
}
You’ve gone to a different page
Goalscompleted
0
- Assign a flexbox layout to the
.post aside
block, - align the main axis from top to bottom,
- ensure the arrangement of flex items along the main axis without margins along the edges,
- and then assign a right margin of
20px
.
Comments