Skip to content

Commit 28f5a1b

Browse files
committed
Got introduced to Flexbox
Practiced visually on flexboxfroggy.com
1 parent de7a0f2 commit 28f5a1b

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Day-29/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#100DaysofCode
2+
3+
**Day-29**
4+
5+
Got introduced to Flexbox in The Odin Project and learned visually from the flexboxfroggy website.
6+
7+
- display: flex goes on the container, not items
8+
- align-items (all) vs align-self (one)
9+
- order changes the visual order without touching HTML (Still don't understand well)
10+
- flex-direction, flex-wrap, justify-content, flex-flow, and align-content
11+
12+
I'll learn more about Flexbox tomorrow!
13+
14+

Day-29/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Flexbox</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="flex-container">
11+
<div>
12+
<div><div></div></div>
13+
</div>
14+
<div>Second Div</div>
15+
<div>Third Div</div>
16+
</div>
17+
</body>
18+
</html>

Day-29/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.flex-container > div {
2+
background-color: peachpuff;
3+
border: 12px solid maroon;
4+
padding: 20px;
5+
height: 100px;
6+
max-width: 120px;
7+
flex: 3000;
8+
}

0 commit comments

Comments
 (0)