- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Blocks with Uniform Height</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="subtle">
<article class="todos">
<h1>Muffin’s To-Do List</h1>
<div class="columns">
<section>
<h2>Item 1</h2>
<p>Wake up and exercise</p>
</section>
<section>
<h2>Item 2</h2>
<p>Take an expedition to the kitchen and feast on fish and caviar from the fridge.</p>
</section>
<section>
<h2>Item 3</h2>
<p>Take a break from all of the hard work and nap.</p>
</section>
<section>
<h2>Item 4</h2>
<p>Make a mess, bite a person in the heels, and knock a flower pot off the shelf.</p>
</section>
<section>
<h2>Item 5</h2>
<p>Steal sour cream from the refrigerator.</p>
</section>
<section>
<h2>Item 6</h2>
<p>Determine my relationship with the cat next door.</p>
</section>
</div>
</article>
</body>
</html>
CSS
.columns {
}
.columns section {
float: left;
width: 140px;
}
You’ve gone to a different page
Goalscompleted
0
- Assign a flexbox layout to the
.columns
block, - and overflow the flex elements onto a new line.
Comments