質問編集履歴

2

追加情報を記述

2020/05/04 07:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ![イメージ説明](7f28f5a0d582fc9a589cdd3ae1810f7f.jpeg)### align-items: center;が効きません。
1
+ align-items: center;が効きません。
2
2
 
3
3
  footer-text-areaというコンテナに対して、
4
4
 
@@ -10,18 +10,416 @@
10
10
 
11
11
  を指定し、アイテムを上下中央、左右は間隔を開けて配置するつもりです。
12
12
 
13
-
14
-
15
13
  ですが、上下中央配置が適用されておらず原因が掴めないので、添削をおねがいたします。
16
14
 
17
-
18
-
19
-
20
-
21
-
22
-
23
15
  ```
24
16
 
17
+ <!doctype html>
18
+
19
+ <html>
20
+
21
+ <head>
22
+
23
+ <meta charset="UTF-8">
24
+
25
+ <title>無題ドキュメント</title>
26
+
27
+ <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
28
+
29
+ <link rel="stylesheet" href="css/reset.css">
30
+
31
+ <link rel="stylesheet" href="css/style.css">
32
+
33
+ </head>
34
+
35
+
36
+
37
+ <body>
38
+
39
+
40
+
41
+ <!--headerエリア-->
42
+
43
+ <header class="header">
44
+
45
+
46
+
47
+ <div class="header-logo">
48
+
49
+ <a href="#">
50
+
51
+ <img src="maruni-image/head_logo@2x.png" alt="テキスト" class="header-logo-size">
52
+
53
+ </a>
54
+
55
+ </div>
56
+
57
+
58
+
59
+ <nav class="header-text">
60
+
61
+ <ul class="nav-list">
62
+
63
+ <li class="text-item">
64
+
65
+ <a href="#">マルニの取り組み</a>
66
+
67
+ </li>
68
+
69
+
70
+
71
+ <li class="text-item">
72
+
73
+ <a href="#">事業内容</a>
74
+
75
+ </li>
76
+
77
+
78
+
79
+ <li class="text-item">
80
+
81
+ <a href="#">事例紹介</a>
82
+
83
+ </li>
84
+
85
+ </ul>
86
+
87
+ </nav>
88
+
89
+
90
+
91
+ </header>
92
+
93
+ <!--headerエリア-->
94
+
95
+
96
+
97
+ <!--main-visualエリア-->
98
+
99
+ <section class="mainvisual-area">
100
+
101
+
102
+
103
+ <div class="main-flex display-flex">
104
+
105
+ <div class="flex-item-a">
106
+
107
+ <img src="maruni-image/mainimage-pc@2x.jpg" alt="メインビジュアル">
108
+
109
+ </div>
110
+
111
+
112
+
113
+ <div class="flex-item-b">
114
+
115
+ <p class="main-text-a">テキス</p>
116
+
117
+ <p class="main-text-b">テキスト</p>
118
+
119
+
120
+
121
+ <p class="button-type-a">テキスト</p>
122
+
123
+ <i class="fas fa-long-arrow-alt-right right-icon"></i>
124
+
125
+ </div>
126
+
127
+ </div>
128
+
129
+
130
+
131
+ <p class="main-info">INFORMATION</p>
132
+
133
+ </section>
134
+
135
+ <!--main-visualエリア-->
136
+
137
+
138
+
139
+
140
+
141
+ <!--Total Exterior Planningエリア-->
142
+
143
+ <section class="Total-Exterior-Planning-area">
144
+
145
+
146
+
147
+ <div class="text-tac">
148
+
149
+ <p class="midashi-text">Total Exterior Planning</p>
150
+
151
+ <p class="TEP-maint-text-b">テキスト<br>
152
+
153
+ テキスト</p>
154
+
155
+ <p class="button-type-a">テキスト</p>
156
+
157
+ </div>
158
+
159
+
160
+
161
+
162
+
163
+ <div class="TEP-image-area display-flex">
164
+
165
+ <div class="image-list">
166
+
167
+ <img src="maruni-image/service1@2x.jpg" alt="指を指している画像">
168
+
169
+ <p class="TEP-text-a">Exterior</p>
170
+
171
+ <p class="TEP-text-b">テキスト</p>
172
+
173
+ </div>
174
+
175
+
176
+
177
+ <div class="image-list">
178
+
179
+ <img src="maruni-image/service2@2x.jpg" alt="家の画像">
180
+
181
+ <p class="TEP-text-a">Land Usage</p>
182
+
183
+ <p class="TEP-text-b">テキスト</p>
184
+
185
+ </div>
186
+
187
+
188
+
189
+ <div class="image-list">
190
+
191
+ <img src="maruni-image/service3@2x.jpg" alt="測量する人の画像">
192
+
193
+ <p class="TEP-text-a">Surveying and Design</p>
194
+
195
+ <p class="TEP-text-b">テキスト</p>
196
+
197
+ </div>
198
+
199
+
200
+
201
+ <div class="image-list">
202
+
203
+ <img src="maruni-image/service4@2x.jpg" alt="資材の画像">
204
+
205
+ <p class="TEP-text-a">Material Sales</p>
206
+
207
+ <p class="TEP-text-b">資材販売</p>
208
+
209
+ </div>
210
+
211
+ </div>
212
+
213
+
214
+
215
+ </section>
216
+
217
+ <!--Total Exterior Planningエリア-->
218
+
219
+
220
+
221
+
222
+
223
+ <!--worksエリア-->
224
+
225
+ <section class="works-area">
226
+
227
+
228
+
229
+ <div class="works-text">
230
+
231
+ <p class="midashi-text white-text">Works</p>
232
+
233
+ <p class="button-type-b">テキスト</p>
234
+
235
+ </div>
236
+
237
+
238
+
239
+ <div class="works-home-area display-flex">
240
+
241
+ <div class="image-block">
242
+
243
+ <img src="maruni-image/1575102187.jpg" alt="夜の家の画像" class="works-image">
244
+
245
+ </div>
246
+
247
+
248
+
249
+ <div>
250
+
251
+ <p>テキスト</p>
252
+
253
+ <p class="button-type-a">事例紹介</p>
254
+
255
+ </div>
256
+
257
+ </div>
258
+
259
+
260
+
261
+ </section>
262
+
263
+ <!--worksエリア-->
264
+
265
+
266
+
267
+
268
+
269
+ <!--Topicsエリア-->
270
+
271
+ <section class="topics-area">
272
+
273
+
274
+
275
+ <div class="topics-text-area">
276
+
277
+ <p class="midashi-text">Topics</p>
278
+
279
+ <p class="button-type-a">トピックス一覧</p>
280
+
281
+ </div>
282
+
283
+
284
+
285
+ <div class="topics-contena display-flex">
286
+
287
+ <p class="oyakudati-info">お役立ち情報</p>
288
+
289
+ <p class="day">2020.4.10</p>
290
+
291
+ <p class="topics-text">テキスト</p>
292
+
293
+ </div>
294
+
295
+
296
+
297
+ <div class="topics-contena display-flex">
298
+
299
+ <p class="oyakudati-info">お役立ち情報</p>
300
+
301
+ <p class="day">2020.3.26</p>
302
+
303
+ <p class="topics-text">テキスト</p>
304
+
305
+ </div>
306
+
307
+
308
+
309
+ <div class="topics-contena display-flex">
310
+
311
+ <p class="oyakudati-info">お役立ち情報</p>
312
+
313
+ <p class="day">2020.3.7</p>
314
+
315
+ <p class="topics-text">テキスト</p>
316
+
317
+ </div>
318
+
319
+
320
+
321
+ <div class="topics-contena display-flex">
322
+
323
+ <p class="oyakudati-info">お役立ち情報</p>
324
+
325
+ <p class="day">2020.2.18</p>
326
+
327
+ <p class="topics-text">テキスト</p>
328
+
329
+ </div>
330
+
331
+
332
+
333
+ <div class="topics-contena display-flex">
334
+
335
+ <p class="oyakudati-info">お役立ち情報</p>
336
+
337
+ <p class="day">2020.1.10</p>
338
+
339
+ <p class="topics-text">テキスト</p>
340
+
341
+ </div>
342
+
343
+
344
+
345
+ </section>
346
+
347
+ <!--/Topicsエリア-->
348
+
349
+
350
+
351
+ <!--会社概要エリア-->
352
+
353
+ <section class="conpany-info-area">
354
+
355
+ <div>
356
+
357
+ <a href="#">
358
+
359
+ <img src="maruni-image/foot_logo@2x.png" alt="フッターのロゴ" class="footer-logo-size">
360
+
361
+ </a>
362
+
363
+ </div>
364
+
365
+
366
+
367
+ <div>
368
+
369
+ <p class="conpany-text">テキスト</p>
370
+
371
+
372
+
373
+ <div class="conpany-info-link">
374
+
375
+ <a href="#" class="slash">会社概要 </a>
376
+
377
+ <a href="#" class="slash">プライバシーポリシー</a>
378
+
379
+ <a href="#">採用情報</a>
380
+
381
+ <a href="#" class="slash">資料請求</a>
382
+
383
+ <a href="#">お問合せ</a>
384
+
385
+ </div>
386
+
387
+ </div>
388
+
389
+
390
+
391
+ <div>
392
+
393
+ <div class="conpany-block">
394
+
395
+ <p class="conpany-block-text-a">新築をお考えの方へ</p>
396
+
397
+ <p class="conpany-block-text-b">家を建てる前に知りたいエクステリアのこと。</p>
398
+
399
+ <i class="fas fa-long-arrow-alt-right right-icon"></i>
400
+
401
+ </div>
402
+
403
+
404
+
405
+ <div class="conpany-block">
406
+
407
+ <p class="conpany-block-text-a">住宅会社の方へ</p>
408
+
409
+ <p class="conpany-block-text-b">共に地域ブランディングに取り組みませんか。</p>
410
+
411
+ <i class="fas fa-long-arrow-alt-right right-icon"></i>
412
+
413
+ </div>
414
+
415
+ </div>
416
+
417
+ </section>
418
+
419
+ <!--/会社概要エリア-->
420
+
421
+
422
+
25
423
  <!--footerエリア-->
26
424
 
27
425
  <footer class="footer-area">
@@ -34,23 +432,23 @@
34
432
 
35
433
  <div class="footer-text-a-area white-text">
36
434
 
37
- <p class="footer-text-a">見出しテキスト</p>
435
+ <p class="footer-text-a">株式会社テキスト</p>
436
+
437
+ <p class="footer-text-a">テキストテキスト</p>
438
+
439
+ <p class="footer-text-a">テキスト<p>
38
440
 
39
441
  <p class="footer-text-a">テキスト</p>
40
442
 
41
- <p class="footer-text-a">テキスト<p>
42
-
43
- <p class="footer-text-a">テキスト</p>
44
-
45
443
  </div>
46
444
 
47
445
 
48
446
 
49
447
  <div class="footer-text-b-area white-text">
50
448
 
51
- <p class="footer-text-b">テキスト<br>
449
+ <p class="footer-text-b">©️MARUNI 1969-2020<br>
52
-
450
+
53
- テキストテキスト</p>
451
+ Web Produced By tobikikaku</p>
54
452
 
55
453
  </div>
56
454
 
@@ -62,14 +460,488 @@
62
460
 
63
461
  <!--footerエリア-->
64
462
 
463
+
464
+
465
+ <!--ページトップボタン-->
466
+
467
+ <p class="pagetop-btn">
468
+
469
+ <a href="#"><img src="maruni-image/pagetop@2x.png" alt="トップボタン"></a>
470
+
471
+ </p>
472
+
473
+ <!--ページトップボタン-->
474
+
475
+ </body>
476
+
477
+ </html>
478
+
479
+
480
+
65
481
  コード
66
482
 
67
483
  ```
68
484
 
69
485
 
70
486
 
487
+
488
+
71
489
  ```
72
490
 
491
+ @charset "UTF-8";
492
+
493
+ /* CSS Document */
494
+
495
+
496
+
497
+ html{
498
+
499
+ font-size:62.5%
500
+
501
+ }
502
+
503
+
504
+
505
+ body{
506
+
507
+ font-size:1.6rem;
508
+
509
+ font-family: "YuGothic", "Yu Gothic medium", "Hiragino Sans", "Meiryo", "sans-serif";
510
+
511
+ color:#333;
512
+
513
+ }
514
+
515
+ img{
516
+
517
+ max-width:100%;
518
+
519
+ height:auto;
520
+
521
+ }
522
+
523
+ a{
524
+
525
+ text-decoration: none;
526
+
527
+ color:#333;
528
+
529
+ }
530
+
531
+ .display-flex{
532
+
533
+ display: flex;
534
+
535
+ }
536
+
537
+ .white-text{
538
+
539
+ color:#fff;
540
+
541
+ }
542
+
543
+
544
+
545
+ .button-type-a{
546
+
547
+
548
+
549
+ }
550
+
551
+
552
+
553
+
554
+
555
+ /*headerエリア*/
556
+
557
+
558
+
559
+
560
+
561
+ /*/headerエリア*/
562
+
563
+
564
+
565
+
566
+
567
+ /*main-visualエリア*/
568
+
569
+
570
+
571
+ .flex-item-b{
572
+
573
+ max-width: 170px;
574
+
575
+ margin-right: 35px;
576
+
577
+ margin-left: 35px;
578
+
579
+ }
580
+
581
+ .main-text-a{
582
+
583
+ writing-mode:vertical-rl;
584
+
585
+ font-size:2.6rem;
586
+
587
+ font-weight: 300;
588
+
589
+ line-height: 1.5;
590
+
591
+ }
592
+
593
+ .main-info{
594
+
595
+ padding-left: 30px;
596
+
597
+ padding-top: 35px;
598
+
599
+ padding-bottom: 35px;
600
+
601
+ }
602
+
603
+
604
+
605
+ /*/main-visualエリア*/
606
+
607
+
608
+
609
+ /*Total-Exterior-Planningエリア*/
610
+
611
+ .Total-Exterior-Planning-area{
612
+
613
+ background-color: #f0f0f0;
614
+
615
+ padding: 70px 10px 100px;
616
+
617
+ }
618
+
619
+ .text-tac{
620
+
621
+ text-align: center;
622
+
623
+ }
624
+
625
+ .midashi-text{
626
+
627
+ margin-bottom: 30px;
628
+
629
+ font-family: "futura-pt", "sans-serif";
630
+
631
+ font-family: 2.6rem;
632
+
633
+ font-weight: 500;
634
+
635
+
636
+
637
+ }
638
+
639
+ .TEP-maint-text-b{
640
+
641
+ font-size:1.4rem;
642
+
643
+ line-height: 26px;
644
+
645
+ font-weight: 500;
646
+
647
+ margin-bottom: 40px;
648
+
649
+ }
650
+
651
+
652
+
653
+
654
+
655
+ .TEP-image-area{
656
+
657
+ margin-top: 65px;
658
+
659
+ }
660
+
661
+ .image-list{
662
+
663
+ margin-right: 25px;
664
+
665
+ background-color: #fff;
666
+
667
+ padding: 15px 15px 15px;
668
+
669
+ }
670
+
671
+
672
+
673
+ .image-list:last-of-type{
674
+
675
+ margin-right: 0;
676
+
677
+ }
678
+
679
+
680
+
681
+ .TEP-text-a{
682
+
683
+ margin-top: 10px;
684
+
685
+ font-size:1.4rem;
686
+
687
+ font-weight: 500;
688
+
689
+ }
690
+
691
+
692
+
693
+ .TEP-text-b{
694
+
695
+ margin-top: 10px;
696
+
697
+ font-size:1.4rem;
698
+
699
+ font-weight: 400;
700
+
701
+ }
702
+
703
+ /*/Total-Exterior-Planningエリア*/
704
+
705
+
706
+
707
+
708
+
709
+ /*worksエリア*/
710
+
711
+ .works-area{
712
+
713
+ background-color: #6F8D83;;
714
+
715
+ padding-top: 70px;
716
+
717
+ padding-bottom: 100px;
718
+
719
+ box-sizing: border-box;
720
+
721
+
722
+
723
+ }
724
+
725
+ .works-text{
726
+
727
+ text-align: center;
728
+
729
+ }
730
+
731
+ .works-home-area{
732
+
733
+ background-color: #fff;
734
+
735
+ margin-left: 30px;
736
+
737
+ margin-right: 30px;
738
+
739
+ padding: 15px 15px 15px;
740
+
741
+ }
742
+
743
+ .image-block{
744
+
745
+ width: auto;
746
+
747
+ }
748
+
749
+ .works-image{
750
+
751
+ width: 100%;
752
+
753
+ }
754
+
755
+ /*/worksエリア*/
756
+
757
+
758
+
759
+ /*topicエリア*/
760
+
761
+
762
+
763
+ .topics-area{
764
+
765
+ background-color: #f0f0f0;
766
+
767
+ padding-top: 70px;
768
+
769
+ padding-bottom: 100px;
770
+
771
+ text-align: center;
772
+
773
+ }
774
+
775
+
776
+
777
+ .topics-text-area{
778
+
779
+ margin-bottom: 30px;
780
+
781
+ }
782
+
783
+ .topics-contena{
784
+
785
+ background-color: #FAB8B8;
786
+
787
+ justify-content: center;
788
+
789
+ padding-top: 30px;
790
+
791
+ padding-bottom: 30px;
792
+
793
+ border-top:solid 1px #333;
794
+
795
+
796
+
797
+ }
798
+
799
+ .topics-contena:last-of-type{
800
+
801
+ border-bottom: solid 1px #333;
802
+
803
+ }
804
+
805
+
806
+
807
+ .oyakudati-info{
808
+
809
+ margin-right: 40px;
810
+
811
+ background-color: #333;
812
+
813
+ color:#fff;
814
+
815
+ font-size:1.1rem;
816
+
817
+ line-height: 11px;
818
+
819
+ font-weight: 500;
820
+
821
+ border-radius: 2em;
822
+
823
+ padding: 3px 8px 3px;
824
+
825
+ }
826
+
827
+ .day{
828
+
829
+ font-size: 1.4rem;
830
+
831
+ font-weight: 500;
832
+
833
+ margin-right: 40px;
834
+
835
+ }
836
+
837
+ /*/topicエリア*/
838
+
839
+
840
+
841
+ /*会社概要エリア*/
842
+
843
+ .conpany-info-area{
844
+
845
+ padding: 90px 20px 100px;
846
+
847
+ }
848
+
849
+ .footer-logo-size{
850
+
851
+ width: 10%;
852
+
853
+ }
854
+
855
+ .conpany-text{
856
+
857
+ font-size:1.4rem;
858
+
859
+ line-height: 25px;
860
+
861
+ font-weight: 500;
862
+
863
+
864
+
865
+ }
866
+
867
+ .conpany-info-link{
868
+
869
+ font-size:1.2rem;
870
+
871
+ font-weight: 700;
872
+
873
+ line-height: 1.5;
874
+
875
+ width: 300px;
876
+
877
+ }
878
+
879
+
880
+
881
+ .slash::after{
882
+
883
+ content: "/";
884
+
885
+ margin-left: 15px;
886
+
887
+ margin-right: 15px;
888
+
889
+ }
890
+
891
+ .conpany-block{
892
+
893
+ padding: 20px 20px 20px;
894
+
895
+ border:solid 1px #333;
896
+
897
+ margin-bottom: 10px;
898
+
899
+ position:relative;
900
+
901
+ width: 35%;
902
+
903
+ }
904
+
905
+ .conpany-block:last-of-type{
906
+
907
+ margin-bottom: 0;
908
+
909
+ }
910
+
911
+ .conpany-block-text-a{
912
+
913
+ font-size: 1.4rem;
914
+
915
+ font-weight: 700;
916
+
917
+ margin-bottom: 10px;
918
+
919
+ }
920
+
921
+ .conpany-block-text-b{
922
+
923
+ font-weight: 500;
924
+
925
+ font-size:1.2rem;
926
+
927
+ }
928
+
929
+ .right-icon{
930
+
931
+ position: absolute;
932
+
933
+ top:50%;
934
+
935
+ right:20px;
936
+
937
+ transform: translate3d(-50%,-50%,0);
938
+
939
+ }
940
+
941
+ /*/会社概要エリア*/
942
+
943
+
944
+
73
945
  /*footerエリア*/
74
946
 
75
947
  .footer-area{
@@ -82,7 +954,7 @@
82
954
 
83
955
  padding-left: 30px;
84
956
 
85
- background-color: #333;
957
+ background-color: #333
86
958
 
87
959
  }
88
960
 
@@ -98,8 +970,6 @@
98
970
 
99
971
  }
100
972
 
101
-
102
-
103
973
  .footer-text-a-area{
104
974
 
105
975
  display: flex;
@@ -116,10 +986,6 @@
116
986
 
117
987
  }
118
988
 
119
-
120
-
121
-
122
-
123
989
  .footer-text-b{
124
990
 
125
991
  text-align: center;
@@ -128,16 +994,28 @@
128
994
 
129
995
  font-weight: 500;
130
996
 
131
-
132
-
133
-
134
-
135
- }
997
+ }
136
-
137
-
138
998
 
139
999
  /*footerエリア*/
140
1000
 
1001
+ /*pagetopボタン*/
1002
+
1003
+ .pagetop-btn{
1004
+
1005
+ width: 50px;
1006
+
1007
+ height: 50px;
1008
+
1009
+ position: fixed;
1010
+
1011
+ right: 10px;
1012
+
1013
+ bottom:0;
1014
+
1015
+ }
1016
+
1017
+ /*pagetopボタン*/
1018
+
141
1019
  コード
142
1020
 
143
1021
  ```

1

画像の追加

2020/05/04 07:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ### align-items: center;が効きません。
1
+ ![イメージ説明](7f28f5a0d582fc9a589cdd3ae1810f7f.jpeg)### align-items: center;が効きません。
2
2
 
3
3
  footer-text-areaというコンテナに対して、
4
4