Skip to content

Commit fd1a231

Browse files
committed
grid paying around
1 parent f24c023 commit fd1a231

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

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

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,54 @@
5555
/*gap: 10px;*/
5656
column-gap: 20px;
5757
row-gap: 30px;
58+
display: none;
5859
}
5960

60-
.el--8 {
61+
/*.el--8 {
6162
grid-column: 2 / 3;
6263
grid-row: 1;
6364
}
6465
6566
.el--2 {
66-
/*grid-column: 1 / 4;*/
67-
/*grid-column: 1 / span 4;*/
68-
grid-column: 1 / -1; /* span all the way to end */
67+
!*grid-column: 1 / 4;*!
68+
!*grid-column: 1 / span 4;*!
69+
grid-column: 1 / -1; !* span all the way to end *!
6970
grid-row: 2;
7071
}
7172
7273
.el--6 {
7374
grid-row: 3 / 6;
74-
}
75+
}*/
7576

7677
.container--2 {
77-
display: none;
7878
/* STARTER */
7979
font-family: sans-serif;
8080
background-color: black;
8181
font-size: 40px;
82-
margin: 100px;
82+
margin: 40px;
8383

84-
width: 1000px;
84+
width: 700px;
8585
height: 600px;
8686

8787
/* CSS GRID */
88+
display: grid;
89+
grid-template-columns: 125px 200px 125px;
90+
grid-template-rows: 250px 100px;
91+
gap: 50px;
92+
/* Aligning tracks inside container: distribute empty space*/
93+
justify-content: center;
94+
/*justify-content: space-between;*/
95+
align-content: center;
96+
/*align-content: space-between;*/
97+
98+
/* aligning Items inside cell : moving items around inside cells */
99+
align-items: center;
100+
justify-items: center;
101+
}
102+
103+
.el--3 {
104+
align-self: end;
105+
justify-self: end;
88106
}
89107
</style>
90108
<title>CSS Grid</title>

0 commit comments

Comments
 (0)