回答編集履歴

1

要件漏れのため修正

2018/01/11 08:49

投稿

x_x
x_x

スコア13749

test CHANGED
@@ -167,3 +167,211 @@
167
167
  }
168
168
 
169
169
  ```
170
+
171
+
172
+
173
+ -- 17:47 要件漏れのため修正
174
+
175
+ ```HTML
176
+
177
+ <div class="wrap fl_base clearfix">
178
+
179
+ <div class="fl_inner inner_left">
180
+
181
+ <h4>
182
+
183
+ <span class="icon1">アイコン1</span>
184
+
185
+ <a href="#">
186
+
187
+ パターン:メインテキストメインテキストメインテキストメインテキストメインテキストメインテキストメインテキスト
188
+
189
+ </a>
190
+
191
+ </h4>
192
+
193
+ <p class="under">サブテキスト</p>
194
+
195
+ </div>
196
+
197
+ <div class="fl_inner icon_wrap">
198
+
199
+ <a href="#" target="_blank" class="pink">
200
+
201
+ アイコン2
202
+
203
+ </a>
204
+
205
+ <a href="#" target="_blank" class="blue">
206
+
207
+ アイコン3
208
+
209
+ </a>
210
+
211
+ </div>
212
+
213
+ </div>
214
+
215
+ ```
216
+
217
+
218
+
219
+ ```CSS
220
+
221
+ .wrap.fl_base.clearfix {
222
+
223
+ display: flex;
224
+
225
+ justify-content: space-between;
226
+
227
+ margin-bottom: 30px;
228
+
229
+ padding: 8px;
230
+
231
+ width: 780px;
232
+
233
+ background: #f1f1f1;
234
+
235
+ }
236
+
237
+
238
+
239
+ .fl_inner.inner_left {
240
+
241
+ display: inline-block;
242
+
243
+ white-space: nowrap;
244
+
245
+ overflow: hidden;
246
+
247
+ text-overflow: ellipsis;
248
+
249
+ }
250
+
251
+
252
+
253
+ h4 {
254
+
255
+ display: inline;
256
+
257
+ white-space: nowrap;
258
+
259
+ color: #6c7eca;
260
+
261
+ }
262
+
263
+
264
+
265
+ h4 a {
266
+
267
+ font-size: 18px;
268
+
269
+ color: #6c7eca;
270
+
271
+ }
272
+
273
+
274
+
275
+ span.icon1 {
276
+
277
+ display: inline-block;
278
+
279
+ margin: 0 8px;
280
+
281
+ padding: 0px 2px;
282
+
283
+ float: right;
284
+
285
+ width: 120px;
286
+
287
+ height: 19px;
288
+
289
+ text-align: center;
290
+
291
+ line-height: 20px;
292
+
293
+ font-size: 12px;
294
+
295
+ background: #e66262;
296
+
297
+ color: #fff;
298
+
299
+ }
300
+
301
+
302
+
303
+ .fl_inner.icon_wrap {
304
+
305
+ display: flex;
306
+
307
+ justify-content: space-between;
308
+
309
+ align-items: center;
310
+
311
+ white-space: nowrap;
312
+
313
+ }
314
+
315
+
316
+
317
+ .fl_inner.icon_wrap > * {
318
+
319
+ /* for IE */
320
+
321
+ min-width: 60px;
322
+
323
+ text-align: center;
324
+
325
+ }
326
+
327
+
328
+
329
+ .fl_inner.icon_wrap > * + * {
330
+
331
+ margin-left: .5em;
332
+
333
+ }
334
+
335
+
336
+
337
+ a.pink {
338
+
339
+ display: inline-block;
340
+
341
+ padding: 4px;
342
+
343
+ font-size: 12px;
344
+
345
+ background: #ff95bf;
346
+
347
+ color: #fff;
348
+
349
+ }
350
+
351
+
352
+
353
+ a.blue {
354
+
355
+ display: inline-block;
356
+
357
+ padding: 4px;
358
+
359
+ font-size: 12px;
360
+
361
+ background: #95bbff;
362
+
363
+ color: #fff;
364
+
365
+ }
366
+
367
+
368
+
369
+ p.under {
370
+
371
+ margin: 0;
372
+
373
+ font-size: 12px;
374
+
375
+ }
376
+
377
+ ```