Skip to content

Commit fb0c3ac

Browse files
committed
flex
In flex container elements are inline-block and align-item is stretch as default
1 parent d6b00d9 commit fb0c3ac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

starter/04-CSS-Layouts/flexbox.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
}
3131
.el--8 {
3232
background-color: crimson;
33+
padding: 10px;
3334
}
3435

3536
.container {
@@ -38,7 +39,9 @@
3839
background-color: #ddd;
3940
font-size: 40px;
4041
margin: 40px;
41-
42+
display: flex;
43+
align-items: stretch;
44+
justify-content: space-around;
4245
/* FLEXBOX */
4346
}
4447
</style>

starter/04-CSS-Layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ <h1>📘 The Code Magazine</h1>
2525
<!-- <strong>This is the navigation</strong> -->
2626
<a href="blog.html">Blog</a>
2727
<a href="#">Challenges</a>
28-
<a href="#">Flexbox</a>
29-
<a href="#">CSS Grid</a>
28+
<a href="flexbox.html">Flexbox</a>
29+
<a href="css-grid.html">CSS Grid</a>
3030
</nav>
3131
</header>
3232

0 commit comments

Comments
 (0)