質問編集履歴
2
回答から得た解決内容を追記した。
test
CHANGED
File without changes
|
test
CHANGED
@@ -459,3 +459,469 @@
|
|
459
459
|
|
460
460
|
|
461
461
|
```
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
追記
|
466
|
+
|
467
|
+
回答からコードを修正しました。
|
468
|
+
|
469
|
+
```html
|
470
|
+
|
471
|
+
コード
|
472
|
+
|
473
|
+
<!DOCTYPE html>
|
474
|
+
|
475
|
+
<html>
|
476
|
+
|
477
|
+
<head>
|
478
|
+
|
479
|
+
<meta charset="utf-8">
|
480
|
+
|
481
|
+
<title>Progate</title>
|
482
|
+
|
483
|
+
<link rel="stylesheet" type="text/css" href="stylesheet.css">
|
484
|
+
|
485
|
+
<!-- ここでFont Awesomeを読み込んでください -->
|
486
|
+
|
487
|
+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
488
|
+
|
489
|
+
</head>
|
490
|
+
|
491
|
+
<body>
|
492
|
+
|
493
|
+
<!-- ここにコードを書いていきましょう -->
|
494
|
+
|
495
|
+
<header>
|
496
|
+
|
497
|
+
<div class="container-header">
|
498
|
+
|
499
|
+
<div class="header-left">
|
500
|
+
|
501
|
+
<img class="logo" src="https://prog-8.com/images/html/advanced/main_logo.png">
|
502
|
+
|
503
|
+
</div>
|
504
|
+
|
505
|
+
<div class="header-right">
|
506
|
+
|
507
|
+
<a href="#" clacc="log">ログイン</a>
|
508
|
+
|
509
|
+
</div>
|
510
|
+
|
511
|
+
</div>
|
512
|
+
|
513
|
+
</header>
|
514
|
+
|
515
|
+
<div class="top-wrapper">
|
516
|
+
|
517
|
+
<div class="container">
|
518
|
+
|
519
|
+
<h1>LEARN TO CODE.<br>LEARN TO BE CREATIVE.</h1>
|
520
|
+
|
521
|
+
<p>Progateはオンラインプログラミング学習サービスです。<br>初心者にやさしいスライドとレッスンで、ウェブサービスを作りながらプログラミングを学んでいきましょう。</p>
|
522
|
+
|
523
|
+
<a href="#" class="btn sign-up">新規登録はこちら</a>
|
524
|
+
|
525
|
+
<p>or</p>
|
526
|
+
|
527
|
+
<a href="#" class="btn facebook"><span class="fa fa-facebook"></span>Facebookで登録</a>
|
528
|
+
|
529
|
+
<a href="#" class="btn twitter"><span class="fa fa-twitter"></span>Twitterで登録</a>
|
530
|
+
|
531
|
+
</div>
|
532
|
+
|
533
|
+
</div>
|
534
|
+
|
535
|
+
<div class="content">
|
536
|
+
|
537
|
+
<div class="heading">
|
538
|
+
|
539
|
+
<h2>Learn Where to Get Started!</h2>
|
540
|
+
|
541
|
+
</div>
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
<div class="guide">
|
546
|
+
|
547
|
+
<div class="lesson-icon">
|
548
|
+
|
549
|
+
<img src="https://prog-8.com/images/html/advanced/html.png">
|
550
|
+
|
551
|
+
<p>HTML& CSS</p>
|
552
|
+
|
553
|
+
</div>
|
554
|
+
|
555
|
+
<P>ウェブページの作成に使用される言語です。HTMLとCSSを組み合わせることで、静的なページを作り上げることができます。</P>
|
556
|
+
|
557
|
+
</div>
|
558
|
+
|
559
|
+
<div class="guide">
|
560
|
+
|
561
|
+
<div class="lesson-icon">
|
562
|
+
|
563
|
+
<img src="https://prog-8.com/images/html/advanced/jQuery.png">
|
564
|
+
|
565
|
+
<p>jQuery</p>
|
566
|
+
|
567
|
+
</div>
|
568
|
+
|
569
|
+
<P>素敵な動きを手軽に実装できるJavaScriptライブラリです。 アニメーション効果をつけたり、Ajax(エイジャックス)を使って外部ファイルを読み込んだりと色々なことができます。</P>
|
570
|
+
|
571
|
+
</div>
|
572
|
+
|
573
|
+
<div class="guide">
|
574
|
+
|
575
|
+
<div class="lesson-icon">
|
576
|
+
|
577
|
+
<img src="https://prog-8.com/images/html/advanced/ruby.png">
|
578
|
+
|
579
|
+
<p>Ruby</p>
|
580
|
+
|
581
|
+
</div>
|
582
|
+
|
583
|
+
<P>オープンソースの動的なプログラミング言語で、 シンプルさと高い生産性を備えています。大きなWebアプリケーションから小さな日用ツールまで、さまざまなソフトウェアを作ることができます。</P>
|
584
|
+
|
585
|
+
</div>
|
586
|
+
|
587
|
+
<div class="guide">
|
588
|
+
|
589
|
+
<div class="lesson-icon">
|
590
|
+
|
591
|
+
<img src="https://prog-8.com/images/html/advanced/php.png">
|
592
|
+
|
593
|
+
<p>PHP</p>
|
594
|
+
|
595
|
+
</div>
|
596
|
+
|
597
|
+
<P>HTMLだけではページの内容を変えることはできません。PHPはHTMLにプログラムを埋め込み、それを可能にします。</P>
|
598
|
+
|
599
|
+
</div>
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
</div>
|
606
|
+
|
607
|
+
</body>
|
608
|
+
|
609
|
+
</html>
|
610
|
+
|
611
|
+
```
|
612
|
+
|
613
|
+
回答からの指摘以外変更点
|
614
|
+
|
615
|
+
<div class="guide-parent">を削除しました。
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
```css
|
620
|
+
|
621
|
+
コード
|
622
|
+
|
623
|
+
/* CSSのリセット(消さないでください) */
|
624
|
+
|
625
|
+
html, body,
|
626
|
+
|
627
|
+
ul, ol, li,
|
628
|
+
|
629
|
+
h1, h2, h3, h4, h5, h6, p, div {
|
630
|
+
|
631
|
+
margin: 0;
|
632
|
+
|
633
|
+
padding: 0;
|
634
|
+
|
635
|
+
}
|
636
|
+
|
637
|
+
img{
|
638
|
+
|
639
|
+
max-width:100%;
|
640
|
+
|
641
|
+
height:auto;
|
642
|
+
|
643
|
+
}
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
body {
|
648
|
+
|
649
|
+
font-family: 'Hiragino Kaku Gothic ProN W3', sans-serif;
|
650
|
+
|
651
|
+
}
|
652
|
+
|
653
|
+
|
654
|
+
|
655
|
+
li {
|
656
|
+
|
657
|
+
list-style: none;
|
658
|
+
|
659
|
+
}
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
a {
|
664
|
+
|
665
|
+
text-decoration: none;
|
666
|
+
|
667
|
+
}
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
/* ここからCSSを書いていきましょう */
|
672
|
+
|
673
|
+
.container-header{
|
674
|
+
|
675
|
+
display:block;
|
676
|
+
|
677
|
+
background-color:rgba(34, 49, 52, 0.9);
|
678
|
+
|
679
|
+
width:100%;
|
680
|
+
|
681
|
+
height:65px;
|
682
|
+
|
683
|
+
z-index:10;
|
684
|
+
|
685
|
+
position:fixed;
|
686
|
+
|
687
|
+
padding:0 15px;
|
688
|
+
|
689
|
+
color:white;
|
690
|
+
|
691
|
+
}
|
692
|
+
|
693
|
+
.header-left{
|
694
|
+
|
695
|
+
margin-top:20px;
|
696
|
+
|
697
|
+
width:124px;
|
698
|
+
|
699
|
+
position:relative;left:60px;
|
700
|
+
|
701
|
+
float:left;
|
702
|
+
|
703
|
+
}
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
.logo{
|
708
|
+
|
709
|
+
width:124px;
|
710
|
+
|
711
|
+
height:auto;
|
712
|
+
|
713
|
+
}
|
714
|
+
|
715
|
+
.header-right{
|
716
|
+
|
717
|
+
float:right;
|
718
|
+
|
719
|
+
background-color:rgba(255, 255, 255, 0.3);
|
720
|
+
|
721
|
+
color:white;
|
722
|
+
|
723
|
+
margin-right:50px;
|
724
|
+
|
725
|
+
}
|
726
|
+
|
727
|
+
.header-right a{
|
728
|
+
|
729
|
+
padding:0 25px;
|
730
|
+
|
731
|
+
color:white;
|
732
|
+
|
733
|
+
line-height:65px;
|
734
|
+
|
735
|
+
margin-right:28px;
|
736
|
+
|
737
|
+
}
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
.top-wrapper{
|
752
|
+
|
753
|
+
height:580px;
|
754
|
+
|
755
|
+
width:1280px;
|
756
|
+
|
757
|
+
background-image:url(https://prog-8.com/images/html/advanced/top.png);
|
758
|
+
|
759
|
+
background-size:cover;
|
760
|
+
|
761
|
+
text-align:center;
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
}
|
766
|
+
|
767
|
+
.container h1{
|
768
|
+
|
769
|
+
font-size:45px;
|
770
|
+
|
771
|
+
opacity:0.7;
|
772
|
+
|
773
|
+
letter-spacing:5px;
|
774
|
+
|
775
|
+
color:white;
|
776
|
+
|
777
|
+
font-weight:bold;
|
778
|
+
|
779
|
+
padding-top:170px;
|
780
|
+
|
781
|
+
}
|
782
|
+
|
783
|
+
.container p{
|
784
|
+
|
785
|
+
font-size:16px;
|
786
|
+
|
787
|
+
margin-bottom:30px;
|
788
|
+
|
789
|
+
color:white;
|
790
|
+
|
791
|
+
opacity:0.7;
|
792
|
+
|
793
|
+
}
|
794
|
+
|
795
|
+
.btn{
|
796
|
+
|
797
|
+
padding:8px 24px;
|
798
|
+
|
799
|
+
color:white;
|
800
|
+
|
801
|
+
opacity:0.8;
|
802
|
+
|
803
|
+
border-radius:4px;
|
804
|
+
|
805
|
+
}
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
.sign-up{
|
814
|
+
|
815
|
+
background-color:#239b76;
|
816
|
+
|
817
|
+
margin:30px 0px 15px 0;
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
|
823
|
+
}
|
824
|
+
|
825
|
+
.facebook{
|
826
|
+
|
827
|
+
background:#3b5998;
|
828
|
+
|
829
|
+
margin-right:10px;
|
830
|
+
|
831
|
+
margin-bottom:100px;
|
832
|
+
|
833
|
+
margin-top:15px;
|
834
|
+
|
835
|
+
}
|
836
|
+
|
837
|
+
.twitter{
|
838
|
+
|
839
|
+
background:#55acee;
|
840
|
+
|
841
|
+
}
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
.content{
|
846
|
+
|
847
|
+
display:inline-block;
|
848
|
+
|
849
|
+
width:1170px;
|
850
|
+
|
851
|
+
height:500px;
|
852
|
+
|
853
|
+
padding-bottom:80px;
|
854
|
+
|
855
|
+
background-color:#f7f7f7;
|
856
|
+
|
857
|
+
text-align:center;
|
858
|
+
|
859
|
+
}
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
.heading h2{
|
864
|
+
|
865
|
+
color:#5f5d60;
|
866
|
+
|
867
|
+
font-size:1.5em;
|
868
|
+
|
869
|
+
padding-top:80px;
|
870
|
+
|
871
|
+
padding-bottom:50px;
|
872
|
+
|
873
|
+
}
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
.guide{
|
878
|
+
|
879
|
+
width:25%;
|
880
|
+
|
881
|
+
float:left;
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
}
|
888
|
+
|
889
|
+
.lesson-icon{
|
890
|
+
|
891
|
+
width:80%;
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
}
|
896
|
+
|
897
|
+
.lesson-icon p{
|
898
|
+
|
899
|
+
position:relative;bottom:110px;
|
900
|
+
|
901
|
+
color:white;
|
902
|
+
|
903
|
+
}
|
904
|
+
|
905
|
+
.guide p{
|
906
|
+
|
907
|
+
width:80%;
|
908
|
+
|
909
|
+
display:inline-block;
|
910
|
+
|
911
|
+
margin-top:15px;
|
912
|
+
|
913
|
+
font-size:13px;
|
914
|
+
|
915
|
+
color:#b3aeb5;
|
916
|
+
|
917
|
+
}
|
918
|
+
|
919
|
+
|
920
|
+
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
|
925
|
+
```
|
926
|
+
|
927
|
+
![イメージ説明](0aada105605cfcbbacd0544ba02f9a05.png)
|
1
cssコード変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -436,7 +436,7 @@
|
|
436
436
|
|
437
437
|
.lesson-icon p{
|
438
438
|
|
439
|
-
position:relative;bottom:110;
|
439
|
+
position:relative;bottom:110px;
|
440
440
|
|
441
441
|
color:white;
|
442
442
|
|