質問編集履歴

1

CSS 修正

2019/04/19 13:32

投稿

ShinYam
ShinYam

スコア23

test CHANGED
File without changes
test CHANGED
@@ -371,3 +371,251 @@
371
371
 
372
372
 
373
373
  ```
374
+
375
+ ```CSS2
376
+
377
+ コード
378
+
379
+ .logo {
380
+
381
+ float: left;
382
+
383
+ }
384
+
385
+
386
+
387
+ .home {
388
+
389
+ padding-top: 5px;
390
+
391
+ }
392
+
393
+
394
+
395
+ .glass {
396
+
397
+ size: 10%;
398
+
399
+ }
400
+
401
+
402
+
403
+ .header-inner {
404
+
405
+ display: flex; //追加コード
406
+
407
+ align-items: stretch; //追加コード
408
+
409
+ height: 80px; //追加コード
410
+
411
+ }
412
+
413
+
414
+
415
+ .header-container {
416
+
417
+ background-color : yellow;
418
+
419
+ padding: 25px 10px; //数値変更
420
+
421
+ /* padding-bottom:15px; */
422
+
423
+ /* height: 75px; */
424
+
425
+ /* float: left; */
426
+
427
+ width: 204px; //追加コード
428
+
429
+ }
430
+
431
+
432
+
433
+ .list {
434
+
435
+ /* padding-top: 30px; */
436
+
437
+ /* height: 75px; */
438
+
439
+ width: calc(100% - 204px); //追加コード
440
+
441
+ }
442
+
443
+
444
+
445
+ .clear {
446
+
447
+ clear: both;
448
+
449
+ }
450
+
451
+
452
+
453
+ .xp {
454
+
455
+ background-color: red;
456
+
457
+ display: flex;
458
+
459
+ justify-content: flex-end;
460
+
461
+ height: 100%; //追加コード
462
+
463
+ align-items: center; //追加コード
464
+
465
+ margin: 0; //追加コード
466
+
467
+ }
468
+
469
+
470
+
471
+ .selector {
472
+
473
+ color : red;
474
+
475
+ }
476
+
477
+
478
+
479
+ .link {
480
+
481
+ color: black;
482
+
483
+ margin-left: 15px;
484
+
485
+ text-align: left;
486
+
487
+ text-decoration: none;
488
+
489
+ }
490
+
491
+
492
+
493
+ .search {
494
+
495
+ padding-top: 10px;
496
+
497
+ }
498
+
499
+
500
+
501
+ .searching {
502
+
503
+ background-image: url("虫眼鏡.PNG")
504
+
505
+ }
506
+
507
+
508
+
509
+ .links {
510
+
511
+ float : left;
512
+
513
+ }
514
+
515
+
516
+
517
+ .alert {
518
+
519
+ margin-bottom: 0 ! important; //追加コード
520
+
521
+ }
522
+
523
+ .alert-warning {
524
+
525
+ margin: 0; //追加コード
526
+
527
+ }
528
+
529
+
530
+
531
+ .alert-dismissible {
532
+
533
+ margin-top: 1px;
534
+
535
+ }
536
+
537
+
538
+
539
+ img {
540
+
541
+ float : left;
542
+
543
+ }
544
+
545
+
546
+
547
+ input {
548
+
549
+ margin-right: 1150px;
550
+
551
+ float: left;
552
+
553
+ }
554
+
555
+
556
+
557
+ li {
558
+
559
+ padding : 0 0 0 0;
560
+
561
+ list-style: none;
562
+
563
+ /* float : left; */
564
+
565
+ /* padding-bottom: 120px; */
566
+
567
+ display: inline-block; //追加コード
568
+
569
+ }
570
+
571
+
572
+
573
+ .main {
574
+
575
+ background-image: url(pic.jpg) ;
576
+
577
+ background-size: cover;
578
+
579
+ z-index: 1;
580
+
581
+ height: 600px;
582
+
583
+ width: 100%;
584
+
585
+
586
+
587
+ }
588
+
589
+
590
+
591
+ .middle {
592
+
593
+ margin-left: 400px;
594
+
595
+ padding-top: 200px;
596
+
597
+ }
598
+
599
+
600
+
601
+ H1 {
602
+
603
+ z-index: 2;
604
+
605
+ color: white;
606
+
607
+ font-size: 50px;
608
+
609
+ }
610
+
611
+
612
+
613
+ H3 {
614
+
615
+ color: white;
616
+
617
+ }
618
+
619
+
620
+
621
+ ```