Skip to content

Commit 7130cd3

Browse files
committed
Completed Aligning Grid Items and Tracks
1 parent 63c379a commit 7130cd3

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

myWork/04-CSS-Layouts/CSSGrid/css-grid.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848
column-gap: 20px;
4949
row-gap: 10px;
50+
51+
display: none;
5052
}
5153

5254
.container--2 {
@@ -56,11 +58,25 @@
5658
font-size: 40px;
5759
margin: 100px;
5860

59-
width: 1000px;
61+
width: 800px;
6062
height: 600px;
6163

6264
/* CSS GRID */
63-
display: none;
65+
display: grid;
66+
grid-template-columns: 125px 200px 125px;
67+
grid-template-rows: 250px 100px;
68+
69+
justify-content: center;
70+
/* justify-content: space-between; */
71+
align-content: center;
72+
73+
justify-items: center;
74+
align-items: center;
75+
}
76+
77+
.el--3 {
78+
justify-self: start;
79+
align-self: end;
6480
}
6581

6682
.el--8 {

0 commit comments

Comments
 (0)