- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The vertical row of icons, part 3</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>
<!--
<p>Having rested himself, the cat returned to his usual routine of causing disorder. However, he was caught.</p>
<p>Having decided that he had achieved enough for today, Muffin went to bed with a clear conscience.</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 {
display: flex;
flex-direction: column;
justify-content: space-between;
order: -1;
margin-right: 20px;
}
You’ve gone to a different page
Goalscompleted
0
- Uncomment two paragraphs within the
.post
block in the markup.
Comments