質問編集履歴

1

コードを入力しました

2019/03/06 02:34

投稿

nanasino
nanasino

スコア16

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- エディタ:Atom(1.34.0)
1
+ ```エディタ:Atom(1.34.0)
2
2
 
3
3
 
4
4
 
@@ -19,3 +19,173 @@
19
19
  再インストールもしてみましたが効果がありません。
20
20
 
21
21
  この問題の解決方法をご存知の方がおられましたらお教えください。
22
+
23
+
24
+
25
+ ```html
26
+
27
+ <!DOCTYPE html>
28
+
29
+ <html lang="ja">
30
+
31
+ <head>
32
+
33
+ <meta charset="utf-8">
34
+
35
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
36
+
37
+ <title>CSS Grid Layout</title>
38
+
39
+ <link rel="stylesheet" href="css/styles.css">
40
+
41
+ </head>
42
+
43
+ <body>
44
+
45
+ <div class="container">
46
+
47
+ <div class="item-1">1</div>
48
+
49
+ <div class="item-2">2</div>
50
+
51
+ <div class="item-3">3</div>
52
+
53
+ <div class="item-4">4</div>
54
+
55
+ <div class="item-5">5</div>
56
+
57
+ <div class="item-6">6</div>
58
+
59
+ <div class="item-7">7</div>
60
+
61
+ <div class="item-8">8</div>
62
+
63
+ <div class="item-9">9</div>
64
+
65
+ </div>
66
+
67
+ </body>
68
+
69
+ </html>
70
+
71
+
72
+
73
+ ```
74
+
75
+
76
+
77
+ ```css
78
+
79
+ body{
80
+
81
+ padding: 0;
82
+
83
+ margin: 0;
84
+
85
+ }
86
+
87
+
88
+
89
+ .container{
90
+
91
+ background: #eee;
92
+
93
+ width:300px;
94
+
95
+ height:300px;
96
+
97
+ display: grid;
98
+
99
+ grid-template-rows:80px 80px 80px;
100
+
101
+ grid-template-columns:80px 80px 80px;
102
+
103
+ /* justify-content:end;
104
+
105
+ align-content: center; */
106
+
107
+ justify-items:end;
108
+
109
+ align-items: center;
110
+
111
+ }
112
+
113
+
114
+
115
+ .item-1{
116
+
117
+ background: hsl(300, 80%, 30%);
118
+
119
+ justify-self:center;
120
+
121
+ align-items: center;
122
+
123
+ }
124
+
125
+ .item-2{
126
+
127
+ background: hsl(300, 80%, 40%);
128
+
129
+
130
+
131
+ }
132
+
133
+ .item-3{
134
+
135
+ background: hsl(300, 80%, 50%);
136
+
137
+
138
+
139
+ }
140
+
141
+ .item-4{
142
+
143
+ background: hsl(200, 80%, 30%);
144
+
145
+
146
+
147
+ }
148
+
149
+ .item-5{
150
+
151
+ background: hsl(200, 80%, 40%);
152
+
153
+
154
+
155
+ }
156
+
157
+ .item-6{
158
+
159
+ background: hsl(200, 80%, 50%);
160
+
161
+
162
+
163
+ }
164
+
165
+ .item-7{
166
+
167
+ background: hsl(100, 80%, 30%);
168
+
169
+
170
+
171
+ }
172
+
173
+ .item-8{
174
+
175
+ background: hsl(100, 80%, 40%);
176
+
177
+
178
+
179
+ }
180
+
181
+ .item-9{
182
+
183
+ background: hsl(100, 80%, 50%);
184
+
185
+
186
+
187
+ }
188
+
189
+
190
+
191
+ ```