File tree Expand file tree Collapse file tree 1 file changed +26
-8
lines changed
practice/04 - CSS Layouts Expand file tree Collapse file tree 1 file changed +26
-8
lines changed Original file line number Diff line number Diff line change 55
55
/*gap: 10px;*/
56
56
column-gap : 20px ;
57
57
row-gap : 30px ;
58
+ display : none;
58
59
}
59
60
60
- .el--8 {
61
+ /* .el--8 {
61
62
grid-column: 2 / 3;
62
63
grid-row: 1;
63
64
}
64
65
65
66
.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 *!
69
70
grid-row: 2;
70
71
}
71
72
72
73
.el--6 {
73
74
grid-row: 3 / 6;
74
- }
75
+ }*/
75
76
76
77
.container--2 {
77
- display : none;
78
78
/* STARTER */
79
79
font-family : sans-serif;
80
80
background-color : black;
81
81
font-size : 40px ;
82
- margin : 100 px ;
82
+ margin : 40 px ;
83
83
84
- width : 1000 px ;
84
+ width : 700 px ;
85
85
height : 600px ;
86
86
87
87
/* 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;
88
106
}
89
107
</ style >
90
108
< title > CSS Grid</ title >
You can’t perform that action at this time.
0 commit comments