Skip to content

Commit 899eee6

Browse files
committed
Changed alignment of css grid tracks, as well as grid items inside their cells.
1 parent 39f97cc commit 899eee6

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

starter/04-CSS-Layouts/css-grid.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
column-gap: 20px;
5252
row-gap: 30px;
5353
/* height: 500px; */
54+
55+
display: none;
5456
}
5557

5658
.el--8 {
@@ -73,18 +75,39 @@
7375
} */
7476

7577
.container--2 {
76-
display: none;
78+
/* display: none; */
7779

7880
/* STARTER */
7981
font-family: sans-serif;
8082
background-color: black;
8183
font-size: 40px;
82-
margin: 100px;
84+
margin: 40px;
8385

84-
width: 1000px;
86+
width: 700px;
8587
height: 600px;
8688

8789
/* CSS GRID */
90+
display: grid;
91+
grid-template-columns: 125px 200px 125px;
92+
grid-template-rows: 250px 100px;
93+
gap: 50px;
94+
95+
/* Aligning tracks inside container
96+
distributing empty space */
97+
justify-content: center;
98+
/* justify-content: space-between; */
99+
100+
align-content: center;
101+
102+
/* Aligning items inside cells
103+
moving items around inside cells */
104+
align-items: end;
105+
justify-items: end;
106+
}
107+
108+
.el--3 {
109+
align-self: center;
110+
justify-self: center;
88111
}
89112
</style>
90113
</head>

0 commit comments

Comments
 (0)