Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0919192

Browse files
author
sayedak
committed
flex 6
1 parent 8db595d commit 0919192

File tree

2 files changed

+32
-18
lines changed

2 files changed

+32
-18
lines changed

flex/06-flex-layout/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<input type="text" />
2525
</div>
2626
<div class="buttons">
27-
<button>Do the thing!</button>
28-
<button>Do the other thing!</button>
27+
<button class="b1">Do the thing!</button>
28+
<button class="b2">Do the other thing!</button>
2929
</div>
3030
</div>
3131
<div class="footer">

flex/06-flex-layout/style.css

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ body {
55
margin: 0;
66
overflow: hidden;
77
font-family: Roboto, sans-serif;
8+
display: flex;
9+
flex-direction: column;
810
}
911

1012
img {
@@ -25,46 +27,58 @@ input {
2527
width: 400px;
2628
margin-bottom: 16px;
2729
}
30+
31+
/* List style */
2832
li {
2933
list-style: none;
3034
}
31-
35+
/* Link style */
3236
a {
3337
text-decoration: none;
3438
color: black;
3539
}
40+
/* Header style */
3641
.header {
3742
display: flex;
3843
justify-content: space-between;
39-
align-content: center;
44+
padding: 16px;
4045
}
4146

47+
/* Header child style */
4248
.header .left-links,
4349
.header .right-links {
4450
display: flex;
45-
padding-left: 15px;
46-
column-gap: 1em;
51+
margin: 0;
52+
padding: 0;
53+
gap: 1em;
4754
}
48-
.header .right-links {
49-
padding-left: 0;
50-
padding-right: 15px;
55+
56+
.b1,
57+
.b2 {
58+
padding: 8px 20px;
5159
}
5260

53-
.logo {
61+
/* Footer style */
62+
.footer {
5463
display: flex;
55-
justify-content: center;
56-
align-content: center;
57-
align-items: center;
58-
padding: 10rem;
59-
padding-bottom: 0;
64+
justify-content: space-between;
65+
padding: 16px;
66+
background-color: #eee;
6067
}
6168

62-
.input {
69+
/* Header child style */
70+
.footer .left-links,
71+
.footer .right-links {
6372
display: flex;
64-
justify-content: center;
73+
margin: 0;
74+
padding: 0;
75+
gap: 1em;
6576
}
6677

67-
.buttons {
78+
.content {
79+
flex: 1;
6880
display: flex;
6981
justify-content: center;
82+
align-items: center;
83+
flex-direction: column;
7084
}

0 commit comments

Comments
 (0)