質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -75,3 +75,267 @@
|
|
75
75
|
|
76
76
|
|
77
77
|
宜しくお願いします!
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
※追記です
|
82
|
+
|
83
|
+
説明不足で申し訳ありません!
|
84
|
+
|
85
|
+
お知らせ欄のコードです。
|
86
|
+
|
87
|
+
お知らせ、イベントの左右の余白を合わせたいです。
|
88
|
+
|
89
|
+
```HTML
|
90
|
+
|
91
|
+
<section>
|
92
|
+
|
93
|
+
<h2 class="info-title">お知らせ</h2>
|
94
|
+
|
95
|
+
<ul class="info-list">
|
96
|
+
|
97
|
+
<li class="info-item">
|
98
|
+
|
99
|
+
<time class="date" datetime="2018-06-27">2018年6月27日</time>
|
100
|
+
|
101
|
+
<span class="category news">NEWS</span>
|
102
|
+
|
103
|
+
<span class="section"><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></span>
|
104
|
+
|
105
|
+
</li>
|
106
|
+
|
107
|
+
<li class="info-item">
|
108
|
+
|
109
|
+
<time class="date" datetime="2018-06-27">2018年6月27日</time>
|
110
|
+
|
111
|
+
<span class="category product">PRODUCT</span>
|
112
|
+
|
113
|
+
<span class="section"><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></span>
|
114
|
+
|
115
|
+
</li>
|
116
|
+
|
117
|
+
<li class="info-item">
|
118
|
+
|
119
|
+
<time class="date" datetime="2018-06-27">2018年6月27日</time>
|
120
|
+
|
121
|
+
<span class="category news">NEWS</span>
|
122
|
+
|
123
|
+
<span class="section"><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></span>
|
124
|
+
|
125
|
+
</li>
|
126
|
+
|
127
|
+
<li class="info-item">
|
128
|
+
|
129
|
+
<time class="date" datetime="2018-06-27">2018年6月27日</time>
|
130
|
+
|
131
|
+
<span class="category product">PRODUCT</span>
|
132
|
+
|
133
|
+
<span class="section"><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
</ul>
|
138
|
+
|
139
|
+
</section>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<!--main 終わり-->
|
144
|
+
|
145
|
+
<div class="content">
|
146
|
+
|
147
|
+
<h2>イベント</h2>
|
148
|
+
|
149
|
+
<ul class="box-list">
|
150
|
+
|
151
|
+
<li class="box-ietm"><br>テキストテキストテキストテキストテキストテキスト</li>
|
152
|
+
|
153
|
+
<li class="box-ietm"><br>テキストテキストテキストテキストテキストテキスト</li>
|
154
|
+
|
155
|
+
<li class="box-ietm"><br>テキストテキストテキストテキストテキストテキスト</li>
|
156
|
+
|
157
|
+
</ul>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
```
|
164
|
+
|
165
|
+
```CSS
|
166
|
+
|
167
|
+
section {
|
168
|
+
|
169
|
+
margin-left:100px;
|
170
|
+
|
171
|
+
margin-right: 100px;
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
h2 {
|
178
|
+
|
179
|
+
text-align: center;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
.info-title {
|
186
|
+
|
187
|
+
border-bottom: 2px solid #0066FF;
|
188
|
+
|
189
|
+
padding-bottom: 50px;
|
190
|
+
|
191
|
+
padding-top: 20px;
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
.info-list {
|
198
|
+
|
199
|
+
list-style: none;
|
200
|
+
|
201
|
+
text-align: left;
|
202
|
+
|
203
|
+
margin: 0;
|
204
|
+
|
205
|
+
padding: 0;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
.info-item{
|
212
|
+
|
213
|
+
clear: both;
|
214
|
+
|
215
|
+
margin-bottom: 30px;
|
216
|
+
|
217
|
+
margin-top: 30px;
|
218
|
+
|
219
|
+
border-bottom: 2px solid #F5F5F5;
|
220
|
+
|
221
|
+
padding-bottom: 20px;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
.info-item > .date{
|
228
|
+
|
229
|
+
float: left;
|
230
|
+
|
231
|
+
font-size: 15px;
|
232
|
+
|
233
|
+
display: table-cell;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
.info-item > .category{
|
240
|
+
|
241
|
+
float: left;
|
242
|
+
|
243
|
+
margin-left: 30px;
|
244
|
+
|
245
|
+
font-size: 5px;
|
246
|
+
|
247
|
+
margin-top:3px;
|
248
|
+
|
249
|
+
}
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
.info-item > .section{
|
254
|
+
|
255
|
+
display: block;
|
256
|
+
|
257
|
+
margin-left: 300px;/* ここの幅は好きなように調整してください */
|
258
|
+
|
259
|
+
font-size: 17px;
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
.info-item a{
|
266
|
+
|
267
|
+
color:gray;
|
268
|
+
|
269
|
+
text-decoration:underline;
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
.info-item > .news {
|
276
|
+
|
277
|
+
background-color: #00BFFF;
|
278
|
+
|
279
|
+
padding-right: 10px;
|
280
|
+
|
281
|
+
padding-left: 10px;
|
282
|
+
|
283
|
+
color: white;
|
284
|
+
|
285
|
+
width: 50px;
|
286
|
+
|
287
|
+
text-align:center;
|
288
|
+
|
289
|
+
}
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
.info-item > .product {
|
294
|
+
|
295
|
+
background-color: #FFA500;
|
296
|
+
|
297
|
+
color: white;
|
298
|
+
|
299
|
+
padding-right: 10px;
|
300
|
+
|
301
|
+
padding-left: 10px;
|
302
|
+
|
303
|
+
width: 50px;
|
304
|
+
|
305
|
+
text-align: center;
|
306
|
+
|
307
|
+
}
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
.content {
|
312
|
+
|
313
|
+
margin-left:100px;
|
314
|
+
|
315
|
+
margin-right: 100px;
|
316
|
+
|
317
|
+
text-align: left;
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
.box-list li {
|
324
|
+
|
325
|
+
list-style: none;
|
326
|
+
|
327
|
+
width: 200px;
|
328
|
+
|
329
|
+
height: 200px;
|
330
|
+
|
331
|
+
background-color: black;
|
332
|
+
|
333
|
+
text-align: left;
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
```
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
長くなってしまいましたが、お願いします。
|