File tree Expand file tree Collapse file tree 3 files changed +92
-9
lines changed Expand file tree Collapse file tree 3 files changed +92
-9
lines changed Original file line number Diff line number Diff line change 36
36
/* STARTER */
37
37
font-family : sans-serif;
38
38
background-color : # ddd ;
39
- font-size : 40 px ;
39
+ font-size : 32 px ;
40
40
margin : 40px ;
41
41
42
42
/* FLEXBOX */
43
+ display : flex;
44
+ align-items : center;
45
+ justify-content : flex-start;
46
+ /* gap: 30px; */
47
+ }
48
+
49
+ .el {
50
+ /* margin-right: 30px; */
51
+
52
+ /*
53
+ DEFAULTS:
54
+ flex-grow: 0;
55
+ flex-shrink: 1;
56
+ flex-basis: auto;
57
+ */
58
+ /* flex-basis: 200px; */
59
+ flex-shrink : 0 ;
60
+ flex-grow : 1 ;
61
+ }
62
+
63
+ .el--1 {
64
+ align-self : flex-start;
65
+ flex-grow : 2 ;
66
+ }
67
+
68
+ .el--5 {
69
+ align-self : stretch;
70
+ /* order: 1; */
71
+ }
72
+
73
+ .el--6 {
74
+ /* order: -1; */
43
75
}
44
76
</ style >
45
77
</ head >
51
83
< div class ="el el--4 "> are</ div >
52
84
< div class ="el el--5 "> amazing</ div >
53
85
< div class ="el el--6 "> languages</ div >
54
- < div class ="el el--7 "> to</ div >
55
- < div class ="el el--8 "> learn</ div >
86
+ <!-- < div class="el el--7">to</div>
87
+ <div class="el el--8">learn</div> -->
56
88
</ div >
57
89
</ body >
58
90
</ html >
Original file line number Diff line number Diff line change @@ -18,30 +18,33 @@ <h6>The Basic Language of the Web: HTML</h6>
18
18
-->
19
19
20
20
< div class ="container ">
21
- < header class ="main-header ">
21
+ < header class ="main-header clearfix ">
22
22
< h1 > 📘 The Code Magazine</ h1 >
23
23
24
24
< nav >
25
25
<!-- <strong>This is the navigation</strong> -->
26
26
< a href ="blog.html "> Blog</ a >
27
27
< 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 >
30
30
</ nav >
31
+
32
+ <!-- <div class="clear"></div> -->
31
33
</ header >
32
34
33
35
< article >
34
36
< header class ="post-header ">
35
37
< h2 > The Basic Language of the Web: HTML</ h2 >
36
38
37
39
< img
40
+ class ="author-img "
38
41
src ="img/laura-jones.jpg "
39
42
alt ="Headshot of Laura Jones "
40
43
height ="50 "
41
44
width ="50 "
42
45
/>
43
46
44
- < p id ="author ">
47
+ < p id ="author " class =" author " >
45
48
Posted by < strong > Laura Jones</ strong > on Monday, June 21st 2027
46
49
</ p >
47
50
Original file line number Diff line number Diff line change 2
2
/* border-top: 10px solid #1098ad; */
3
3
margin : 0 ;
4
4
padding : 0 ;
5
+ box-sizing : border-box;
5
6
}
6
7
7
8
/* PAGE SECTIONS */
14
15
}
15
16
16
17
.container {
17
- width : 800 px ;
18
+ width : 1200 px ;
18
19
/* margin-left: auto;
19
20
margin-right: auto; */
20
21
margin : 0 auto;
@@ -50,7 +51,7 @@ aside {
50
51
border-bottom : 5px solid # 1098ad ;
51
52
/* padding-top: 50px;
52
53
padding-bottom: 50px; */
53
- padding : 50px 0 ;
54
+ padding : 50px 40 px ;
54
55
width : 500px ;
55
56
}
56
57
82
83
font-size : 20px ;
83
84
text-transform : uppercase;
84
85
text-align : center;
86
+ margin-bottom : 30px ;
85
87
}
86
88
87
89
p {
@@ -134,6 +136,7 @@ li:last-child {
134
136
135
137
.related {
136
138
list-style : none;
139
+ margin-left : 0 ;
137
140
}
138
141
139
142
body {
@@ -265,3 +268,48 @@ footer p {
265
268
nav p {
266
269
font-size: 18px;
267
270
} */
271
+
272
+ /* FLOATS */
273
+ .author-img {
274
+ float : left;
275
+ margin-bottom : 20px ;
276
+ }
277
+
278
+ .author {
279
+ /* padding-left: 80px; */
280
+ float : left;
281
+ margin-top : 10px ;
282
+ margin-left : 20px ;
283
+ }
284
+
285
+ h1 {
286
+ float : left;
287
+ }
288
+
289
+ nav {
290
+ float : right;
291
+ }
292
+
293
+ /* .clear {
294
+ clear: both;
295
+ } */
296
+ /*
297
+ .clearfix::after {
298
+ clear: both;
299
+ content: "";
300
+ display: block;
301
+ } */
302
+
303
+ article {
304
+ width : 825px ;
305
+ float : left;
306
+ }
307
+
308
+ aside {
309
+ width : 300px ;
310
+ float : right;
311
+ }
312
+
313
+ footer {
314
+ clear : both;
315
+ }
You can’t perform that action at this time.
0 commit comments