Skip to content

Commit 2c57ce9

Browse files
committed
testing flexbox
1 parent 76512e3 commit 2c57ce9

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

starter/04-CSS-Layouts/flexbox.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,29 @@
4040
margin: 40px;
4141

4242
/* FLEXBOX */
43+
display: flex;
44+
align-items: center;
45+
justify-content: flex-start;
46+
}
47+
48+
.el {
49+
/*
50+
DEFAULTS;
51+
flex-grow= 0;
52+
flex-shrink= 1;
53+
flex-basis = auto;
54+
*/
55+
flex-basis: 100px;
56+
/*flex-grow: 1;*/
57+
}
58+
59+
.el--1 {
60+
align-self: flex-start;
61+
flex-grow: 1;
4362
}
4463
</style>
64+
65+
<!-- -->
4566
</head>
4667
<body>
4768
<div class="container">

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

3232
<!-- <div class="clear"></div> -->

starter/04-CSS-Layouts/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* border-top: 10px solid #1098ad; */
33
margin: 0;
44
padding: 0;
5+
box-sizing: border-box;
56
}
67

78
/* PAGE SECTIONS */
@@ -48,10 +49,7 @@ aside {
4849
background-color: #f7f7f7;
4950
border-top: 5px solid #1098ad;
5051
border-bottom: 5px solid #1098ad;
51-
/* padding-top: 50px;
52-
padding-bottom: 50px; */
53-
padding: 50px 0;
54-
width: 500px;
52+
padding: 50px 40px;
5553
}
5654

5755
/* SMALLER ELEMENTS */
@@ -82,6 +80,7 @@ h4 {
8280
font-size: 20px;
8381
text-transform: uppercase;
8482
text-align: center;
83+
margin-bottom: 40px;
8584
}
8685

8786
p {
@@ -134,6 +133,7 @@ li:last-child {
134133

135134
.related {
136135
list-style: none;
136+
margin: 0 0;
137137
}
138138

139139
body {

0 commit comments

Comments
 (0)