質問編集履歴

2

html,cssを変更しました。

2018/11/12 02:52

投稿

hikari_poppo
hikari_poppo

スコア17

test CHANGED
@@ -1 +1 @@
1
- cssでtext-align:centerが効かない
1
+ cssでtext-align:centerが効かない
test CHANGED
@@ -1,12 +1,302 @@
1
- ### What I Can Doをtext-align:centerにしたい。
2
-
3
-
4
-
5
- スマホ、ipad,pcサイズでも中央寄せしたい。
6
-
7
-
8
-
9
- ### 該当のソースコード
1
+ ### What I Madeをtext-align:centerにしたい。
2
+
3
+
4
+
5
+ ipadタブレットサイズではtext-align:centerならない。
6
+
7
+
8
+
9
+ ```HTML
10
+
11
+ <!DOCTYPE html>
12
+
13
+ <html>
14
+
15
+ <head>
16
+
17
+ <meta charset="utf-8">
18
+
19
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
20
+
21
+ <title>My Portfolio</title>
22
+
23
+ <link rel="stylesheet" href="stylesheet.css">
24
+
25
+ <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
26
+
27
+ <!-- fontawesome -->
28
+
29
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
30
+
31
+ <meta name="format-detection" content="telephone=no">
32
+
33
+ <link media="only screen and (max-device-width:480px)"
34
+
35
+ href="smart.css" type="text/css" rel="stylesheet" />
36
+
37
+ <link media="screen and (min-device-width:481px)" href="design.css"
38
+
39
+ type="text/css" rel="stylesheet" />
40
+
41
+ <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
42
+
43
+ </head>
44
+
45
+ <body>
46
+
47
+ <header>
48
+
49
+ <div class="container">
50
+
51
+ <div class="header-right">
52
+
53
+ <a href="http://pikacho.jp" target="_blank">My Blog</a>
54
+
55
+ <a href="https://twitter.com" target="_blank">Twitter</a>
56
+
57
+ <a href="https://github.com/pikacho007" target="_blank">Github</a>
58
+
59
+ </div>
60
+
61
+ </div>
62
+
63
+ </header><!-- header -->
64
+
65
+ <div class="top-wrapper">
66
+
67
+ <div class="container">
68
+
69
+ <h1>HELLO.</h1>
70
+
71
+ <h1>WELCOME TO MY PORTFOLIO.</h1>
72
+
73
+ </div>
74
+
75
+ </div>
76
+
77
+ <!-- top-wrapper -->
78
+
79
+ <div class="introduction">
80
+
81
+ <div class="container">
82
+
83
+ <div class="heading">
84
+
85
+ <img src="img/my_face.jpg">
86
+
87
+ <h2>Who I am</h2>
88
+
89
+ <p>鹿島学園高等学校卒後、
90
+
91
+ <br>約1年間ヒューマンアカデミーでお世話になる。</p>
92
+
93
+ <h3>Love</h3>
94
+
95
+ <p>うさぎ、英語、ゲーム、海外ドラマ鑑賞、海外映画鑑賞、静かなカフェに行く。<br>
96
+
97
+ 特に本屋さんの横についているカフェが好き。</p>
98
+
99
+ </div>
100
+
101
+ </div>
102
+
103
+ </div>
104
+
105
+ <!-- introduction -->
106
+
107
+ <div class="lesson-wrapper">
108
+
109
+ <div class="container">
110
+
111
+ <div class="heading">
112
+
113
+ <h2>What I Can Do</h2>
114
+
115
+ </div>
116
+
117
+ <div class="lessons">
118
+
119
+ <div class="lesson">
120
+
121
+ <div class="lessons-icon">
122
+
123
+ <img src="https://prog-8.com/images/html/advanced/html.png">
124
+
125
+ <p>HTML & CSS</p>
126
+
127
+ </div>
128
+
129
+ </div>
130
+
131
+ <div class="lesson">
132
+
133
+ <div class="lessons-icon">
134
+
135
+ <img src="https://prog-8.com/images/html/advanced/jQuery.png">
136
+
137
+ <p>JavaScript</p>
138
+
139
+ </div>
140
+
141
+ </div>
142
+
143
+ <div class="lesson">
144
+
145
+ <div class="lessons-icon">
146
+
147
+ <img src="https://prog-8.com/images/html/advanced/ruby.png">
148
+
149
+ <p>Illustrator</p>
150
+
151
+ </div>
152
+
153
+ <p class="text-contents"></p>
154
+
155
+ </div>
156
+
157
+ <div class="lesson">
158
+
159
+ <div class="lessons-icon">
160
+
161
+ <img src="https://prog-8.com/images/html/advanced/php.png">
162
+
163
+ <p>Photoshop</p>
164
+
165
+ </div>
166
+
167
+ </div>
168
+
169
+ </div><!-- lessons -->
170
+
171
+ </div><!-- container -->
172
+
173
+ </div><!-- lesson-wrapper -->
174
+
175
+ <div class="works">
176
+
177
+ <h2>What I Made</h2>
178
+
179
+ <div class="portfolio">
180
+
181
+ <h3><a href="#">My Portfolio</a></h3>
182
+
183
+ <p>現在のサイトです。<br>
184
+
185
+ 今までに作った作品を載せているサイトです。<br>
186
+
187
+ このサイトはHTML,CSS,JSを使って作成しました。</p>
188
+
189
+ </div><!-- portfolio -->
190
+
191
+ <div class="icons">
192
+
193
+ <h3>Logo</h3>
194
+
195
+ <img src="img/instagram_logo_by_myself.jpg">
196
+
197
+ <img src="img/pokemon_ball.png">
198
+
199
+ <img src="img/smartphone.png">
200
+
201
+ <p>Photoshop,Illustratorの操作の練習をしたくて、<br>
202
+
203
+ youtubeで作り方の動画を見ながら作って見ました。</p>
204
+
205
+ </div><!-- icons -->
206
+
207
+ <div class="poster">
208
+
209
+ <h3>佐倉市ポスター</h3>
210
+
211
+ <img src="img/P1010421.JPG">
212
+
213
+ <img src="img/ポスター書き出し.png">
214
+
215
+ <p>最寄駅に貼ってあった京都のポスターが綺麗だったので、<br>
216
+
217
+ 京都の嵐山の竹林をイメージして作って見ました。<br>
218
+
219
+ なぜ京都をイメージして作ったかというと、<br>
220
+
221
+ 旅行で京都に行けなかったのが悔しくて、<br>
222
+
223
+ 旅行に行けなかった分、少しでも京都を感じたかったので作りました。
224
+
225
+ </p>
226
+
227
+ </div><!-- poster -->
228
+
229
+ <div class="website">
230
+
231
+ <h3><a href="#">komorikomasha</a></h3>
232
+
233
+ <a href="#"><img src="img/website.png"></a>
234
+
235
+ <p>本を見ながら、ヒューマンアカデミー集団クラスではじめて作ったウェブサイトです。HTML,CSS,jQueryを使って制作しました。</p>
236
+
237
+ <a href="https://amzn.to/2pIoctS" target="_blank">この本を使いました。amazonに飛びます。</a>
238
+
239
+ </div><!-- website -->
240
+
241
+ <div class="FiveSeconds">
242
+
243
+ <h3><a href="#">5秒ぴったりゲーム</a></h3>
244
+
245
+ <img src="img/FiveSeconds.png">
246
+
247
+ <p>ドットインストールのJavaScript講座を見て作りました。<br>
248
+
249
+ ほとんどはドットインストールのお手本を真似て作りましたが、<br>
250
+
251
+ デザインのアレンジは私が少し手を付け加えました。</p>
252
+
253
+ </div><!-- FiveSeconds -->
254
+
255
+ <div class="Omikuji">
256
+
257
+ <h3><a href="#">おみくじ</a></h3>
258
+
259
+ <img src="img/Omikuji.png">
260
+
261
+ <p>ドットインストールのJavaScript講座を見て作りました。<br>
262
+
263
+ 元々は大吉、中吉、凶の中で中吉が多く出るようにしてあったので、<br>
264
+
265
+ 自分でアレンジをしてたくさん凶が出るおみくじを作って見ました。<br>
266
+
267
+ デザインは私が少し手を付け加えました。</p>
268
+
269
+ </div><!-- Omikuji -->
270
+
271
+ </div><!-- works -->
272
+
273
+ <div class="contact">
274
+
275
+ <h2>Contact Me</h2>
276
+
277
+ <img src="img/mail.png">
278
+
279
+ <p><a href="hikaripoppo@gmail.com" target="_blank">hikaripoppo@gmail.com</p>
280
+
281
+ </div><!-- contact -->
282
+
283
+ <p id="page-top">
284
+
285
+ <a href="#"><i class="fas fa-angle-up my-small"></i></a>
286
+
287
+ </p><!-- page-top -->
288
+
289
+ <footer>
290
+
291
+ <div class="container">
292
+
293
+ <p>Copyright 2018 Pikacho</p>
294
+
295
+ </div>
296
+
297
+ </footer><!-- footer -->
298
+
299
+ ```
10
300
 
11
301
 
12
302
 
@@ -172,6 +462,8 @@
172
462
 
173
463
  transition: all 0.5s;
174
464
 
465
+
466
+
175
467
  }
176
468
 
177
469
 
@@ -370,8 +662,24 @@
370
662
 
371
663
  .works {
372
664
 
665
+ width: 100%;
666
+
373
667
  text-align: center;
374
668
 
669
+
670
+
671
+ }
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+ .works h2 {
680
+
681
+ text-align: center;
682
+
375
683
  }
376
684
 
377
685
 
@@ -632,296 +940,16 @@
632
940
 
633
941
 
634
942
 
635
-
636
-
637
- ```HTML
638
-
639
- <!DOCTYPE html>
640
-
641
- <html>
642
-
643
- <head>
644
-
645
- <meta charset="utf-8">
646
-
647
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
648
-
649
- <title>My Portfolio</title>
650
-
651
- <link rel="stylesheet" href="stylesheet.css">
652
-
653
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
654
-
655
- <!-- fontawesome -->
656
-
657
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
658
-
659
- <meta name="format-detection" content="telephone=no">
660
-
661
- <link media="only screen and (max-device-width:480px)"
662
-
663
- href="smart.css" type="text/css" rel="stylesheet" />
664
-
665
- <link media="screen and (min-device-width:481px)" href="design.css"
666
-
667
- type="text/css" rel="stylesheet" />
668
-
669
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
670
-
671
- </head>
672
-
673
- <body>
674
-
675
- <header>
676
-
677
- <div class="container">
678
-
679
- <div class="header-right">
680
-
681
- <a href="http://pikacho.jp" target="_blank">My Blog</a>
682
-
683
- <a href="https://twitter.com" target="_blank">Twitter</a>
684
-
685
- <a href="https://github.com/pikacho007" target="_blank">Github</a>
686
-
687
- </div>
688
-
689
- </div>
690
-
691
- </header><!-- header -->
692
-
693
- <div class="top-wrapper">
694
-
695
- <div class="container">
696
-
697
- <h1>HELLO.</h1>
698
-
699
- <h1>WELCOME TO MY PORTFOLIO.</h1>
700
-
701
- </div>
702
-
703
- </div>
704
-
705
- <!-- top-wrapper -->
706
-
707
- <div class="introduction">
708
-
709
- <div class="container">
710
-
711
- <div class="heading">
712
-
713
- <img src="img/my_face.jpg">
714
-
715
- <h2>Who I am</h2>
716
-
717
- <p>鹿島学園高等学校卒後、
718
-
719
- <br>約1年間ヒューマンアカデミーでお世話になる。</p>
720
-
721
- <h3>Love</h3>
722
-
723
- <p>うさぎ、英語、ゲーム、海外ドラマ鑑賞、海外映画鑑賞、静かなカフェに行く。<br>
724
-
725
- 特に本屋さんの横についているカフェが好き。</p>
726
-
727
- </div>
728
-
729
- </div>
730
-
731
- </div>
732
-
733
- <!-- introduction -->
734
-
735
- <div class="lesson-wrapper">
736
-
737
- <div class="container">
738
-
739
- <div class="heading">
740
-
741
- <h2>What I Can Do</h2>
742
-
743
- </div>
744
-
745
- <div class="lessons">
746
-
747
- <div class="lesson">
748
-
749
- <div class="lessons-icon">
750
-
751
- <img src="https://prog-8.com/images/html/advanced/html.png">
752
-
753
- <p>HTML & CSS</p>
754
-
755
- </div>
756
-
757
- </div>
758
-
759
- <div class="lesson">
760
-
761
- <div class="lessons-icon">
762
-
763
- <img src="https://prog-8.com/images/html/advanced/jQuery.png">
764
-
765
- <p>JavaScript</p>
766
-
767
- </div>
768
-
769
- </div>
770
-
771
- <div class="lesson">
772
-
773
- <div class="lessons-icon">
774
-
775
- <img src="https://prog-8.com/images/html/advanced/ruby.png">
776
-
777
- <p>Illustrator</p>
778
-
779
- </div>
780
-
781
- <p class="text-contents"></p>
782
-
783
- </div>
784
-
785
- <div class="lesson">
786
-
787
- <div class="lessons-icon">
788
-
789
- <img src="https://prog-8.com/images/html/advanced/php.png">
790
-
791
- <p>Photoshop</p>
792
-
793
- </div>
794
-
795
- </div>
796
-
797
- </div><!-- lessons -->
798
-
799
- </div><!-- container -->
800
-
801
- </div><!-- lesson-wrapper -->
802
-
803
- <div class="works">
804
-
805
- <h2>What I Made</h2>
806
-
807
- <div class="portfolio">
808
-
809
- <h3><a href="#">My Portfolio</a></h3>
810
-
811
- <p>現在のサイトです。<br>
812
-
813
- 今までに作った作品を載せているサイトです。<br>
814
-
815
- このサイトはHTML,CSS,JSを使って作成しました。</p>
816
-
817
- </div><!-- portfolio -->
818
-
819
- <div class="icons">
820
-
821
- <h3>Logo</h3>
822
-
823
- <img src="img/instagram_logo_by_myself.jpg">
824
-
825
- <img src="img/pokemon_ball.png">
826
-
827
- <img src="img/smartphone.png">
828
-
829
- <p>Photoshop,Illustratorの操作の練習をしたくて、<br>
830
-
831
- youtubeで作り方の動画を見ながら作って見ました。</p>
832
-
833
- </div><!-- icons -->
834
-
835
- <div class="poster">
836
-
837
- <h3>佐倉市ポスター</h3>
838
-
839
- <img src="img/P1010421.JPG">
840
-
841
- <img src="img/ポスター書き出し.png">
842
-
843
- <p>最寄駅に貼ってあった京都のポスターが綺麗だったので、<br>
844
-
845
- 京都の嵐山の竹林をイメージして作って見ました。<br>
846
-
847
- なぜ京都をイメージして作ったかというと、<br>
848
-
849
- 旅行で京都に行けなかったのが悔しくて、<br>
850
-
851
- 旅行に行けなかった分、少しでも京都を感じたかったので作りました。
852
-
853
- </p>
854
-
855
- </div><!-- poster -->
856
-
857
- <div class="website">
858
-
859
- <h3><a href="#">komorikomasha</a></h3>
860
-
861
- <a href="#"><img src="img/website.png"></a>
862
-
863
- <p>本を見ながら、ヒューマンアカデミー集団クラスではじめて作ったウェブサイトです。HTML,CSS,jQueryを使って制作しました。</p>
864
-
865
- <a href="https://amzn.to/2pIoctS" target="_blank">この本を使いました。amazonに飛びます。</a>
866
-
867
- </div><!-- website -->
868
-
869
- <div class="FiveSeconds">
870
-
871
- <h3><a href="#">5秒ぴったりゲーム</a></h3>
872
-
873
- <img src="img/FiveSeconds.png">
874
-
875
- <p>ドットインストールのJavaScript講座を見て作りました。<br>
876
-
877
- ほとんどはドットインストールのお手本を真似て作りましたが、<br>
878
-
879
- デザインのアレンジは私が少し手を付け加えました。</p>
880
-
881
- </div><!-- FiveSeconds -->
882
-
883
- <div class="Omikuji">
884
-
885
- <h3><a href="#">おみくじ</a></h3>
886
-
887
- <img src="img/Omikuji.png">
888
-
889
- <p>ドットインストールのJavaScript講座を見て作りました。<br>
890
-
891
- 元々は大吉、中吉、凶の中で中吉が多く出るようにしてあったので、<br>
892
-
893
- 自分でアレンジをしてたくさん凶が出るおみくじを作って見ました。<br>
894
-
895
- デザインは私が少し手を付け加えました。</p>
896
-
897
- </div><!-- Omikuji -->
898
-
899
- </div><!-- works -->
900
-
901
- <div class="contact">
902
-
903
- <h2>Contact Me</h2>
904
-
905
- <img src="img/mail.png">
906
-
907
- <p><a href="hikaripoppo@gmail.com" target="_blank">hikaripoppo@gmail.com</p>
908
-
909
- </div><!-- contact -->
910
-
911
- <p id="page-top">
912
-
913
- <a href="#"><i class="fas fa-angle-up my-small"></i></a>
914
-
915
- </p><!-- page-top -->
916
-
917
- <footer>
918
-
919
- <div class="container">
920
-
921
- <p>Copyright 2018 Pikacho</p>
922
-
923
- </div>
924
-
925
- </footer><!-- footer -->
926
-
927
943
  ```
944
+
945
+
946
+
947
+
948
+
949
+ ### 補足情報(FW/ツールのバージョンなど)
950
+
951
+
952
+
953
+ グーグルクロム、
954
+
955
+ Atomを使用しています。

1

HTML,stylecssの変更

2018/11/12 02:52

投稿

hikari_poppo
hikari_poppo

スコア17

test CHANGED
File without changes
test CHANGED
@@ -82,14 +82,20 @@
82
82
 
83
83
  opacity: 0.7;
84
84
 
85
- font-size: 45px;
86
-
87
85
  letter-spacing: 5px;
88
86
 
89
87
  }
90
88
 
91
89
 
92
90
 
91
+ .top-wrapper h1 {
92
+
93
+ font-size: 32px;
94
+
95
+ }
96
+
97
+
98
+
93
99
  .top-wrapper p {
94
100
 
95
101
  opacity: 0.7;
@@ -98,137 +104,417 @@
98
104
 
99
105
 
100
106
 
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
101
- .btn {
119
+ .fa {
120
+
102
-
121
+ margin-right: 5px;
122
+
123
+ }
124
+
125
+
126
+
127
+ header {
128
+
129
+ width: 100%;
130
+
131
+ height: 65px;
132
+
133
+ background-color: rgba(34, 49, 52, 0.9);
134
+
135
+ position :fixed;
136
+
137
+ top: 0;
138
+
139
+ z-index: 10;
140
+
141
+ }
142
+
143
+
144
+
145
+ .header-left {
146
+
147
+ float: left;
148
+
149
+ }
150
+
151
+
152
+
153
+ .header-right {
154
+
155
+ float: right;
156
+
157
+ }
158
+
159
+
160
+
161
+ .header-right a {
162
+
163
+ line-height: 65px;
164
+
103
- padding: 8px 24px;
165
+ padding: 0 10px;
104
166
 
105
167
  color: white;
106
168
 
107
- display: inline-block;
169
+ display: block;
170
+
108
-
171
+ float: left;
172
+
109
- opacity: 0.8;
173
+ transition: all 0.5s;
174
+
110
-
175
+ }
176
+
177
+
178
+
111
- border-radius: 4px;
179
+ .header-right a:hover {
180
+
181
+ background-color: rgba(255, 255, 255, 0.3);
182
+
183
+ }
184
+
185
+
186
+
187
+ .introduction {
112
188
 
113
189
  text-align: center;
114
190
 
191
+ padding-top: 30px;
192
+
115
- }
193
+ }
194
+
195
+
196
+
116
-
197
+ .introduction img {
117
-
118
-
198
+
119
- .btn:hover {
199
+ width: 250px;
120
-
200
+
121
- opacity: 1;
201
+ height: 250px;
122
-
202
+
123
- }
203
+ }
124
-
125
-
126
-
204
+
205
+
206
+
127
- .fa {
207
+ .introduction h2 {
128
-
208
+
129
- margin-right: 5px;
209
+ padding-top: 35px;
130
-
210
+
131
- }
211
+ }
212
+
213
+
214
+
132
-
215
+ .introduction h3 {
216
+
133
-
217
+ padding-top: 35px;
218
+
134
-
219
+ }
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+ .lesson-wrapper {
228
+
229
+ text-align: center;
230
+
231
+ }
232
+
233
+
234
+
235
+
236
+
237
+
238
+
135
- header {
239
+ .heading {
136
-
240
+
137
- height: 65px;
241
+ padding-top: 50px;
242
+
243
+ padding-bottom: 50px;
244
+
245
+
246
+
247
+ }
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ .lesson {
258
+
259
+ float: left;
260
+
261
+ width: 25%;
262
+
263
+ }
264
+
265
+
266
+
267
+ .lessons-icon {
268
+
269
+ position: relative;
270
+
271
+ }
272
+
273
+
274
+
275
+ .lessons-icon p {
276
+
277
+ position: absolute;
278
+
279
+ top: 45%;
138
280
 
139
281
  width: 100%;
140
282
 
141
- background-color: rgba(34, 49, 52, 0.9);
142
-
143
- position :fixed;
144
-
145
- top: 0;
146
-
147
- z-index: 10;
148
-
149
- }
150
-
151
-
152
-
153
- .header-left {
154
-
155
- float: left;
156
-
157
- }
158
-
159
-
160
-
161
- .header-right {
162
-
163
- float: right;
164
-
165
- }
166
-
167
-
168
-
169
- .header-right a {
170
-
171
- line-height: 65px;
172
-
173
- padding: 0 10px;
174
-
175
283
  color: white;
176
284
 
177
- display: block;
178
-
179
- float: left;
180
-
181
- transition: all 0.5s;
182
-
183
- }
285
+ }
286
+
287
+
288
+
184
-
289
+ /* PCサイズ */
290
+
185
-
291
+ @media all and (max-width: 1000px) {
186
-
292
+
187
- .header-right a:hover {
293
+ .container {
188
-
294
+
189
- background-color: rgba(255, 255, 255, 0.3);
295
+ width: 100%;
190
-
296
+
191
- }
297
+ }
298
+
299
+
300
+
192
-
301
+ .lesson {
302
+
193
-
303
+ width: 50%;
304
+
194
-
305
+ margin-bottom: 50px;
306
+
307
+ }
308
+
309
+
310
+
311
+ .poster {
312
+
313
+ width: 100%;
314
+
315
+ }
316
+
317
+ }
318
+
319
+
320
+
321
+ /* タブレットサイズ */
322
+
323
+ @media all and (max-width: 750px) {
324
+
195
- .introduction {
325
+ .container {
326
+
327
+ width: 100%;
328
+
329
+ }
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+ .poster {
338
+
339
+ width: 100%;
340
+
341
+ }
342
+
343
+ }
344
+
345
+
346
+
347
+ /* スマホサイズ */
348
+
349
+ @media all and (max-width: 670px) {
350
+
351
+ .lesson {
352
+
353
+ width: 100%;
354
+
355
+ }
356
+
357
+
358
+
359
+ .poster {
360
+
361
+ width: 100%;
362
+
363
+ }
364
+
365
+ }
366
+
367
+
368
+
369
+
370
+
371
+ .works {
196
372
 
197
373
  text-align: center;
198
374
 
375
+ }
376
+
377
+
378
+
379
+ .heading h2{
380
+
381
+ text-align:center;
382
+
383
+ }
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+ .contact {
400
+
401
+ text-align: center;
402
+
403
+ }
404
+
405
+
406
+
407
+ .contact h2 {
408
+
409
+ padding-top: 100px;
410
+
411
+ }
412
+
413
+
414
+
415
+ .contact img {
416
+
199
417
  padding-top: 30px;
200
418
 
201
419
  }
202
420
 
203
421
 
204
422
 
205
- .introduction img {
206
-
207
- width: 250px;
208
-
209
- height: 250px;
210
-
211
- }
212
-
213
-
214
-
215
- .introduction h2 {
216
-
217
- padding-top: 35px;
218
-
219
- }
220
-
221
-
222
-
223
- .introduction h3 {
224
-
225
- padding-top: 35px;
226
-
227
- }
228
-
229
-
230
-
231
- .lesson-wrapper {
423
+ #page-top {
424
+
425
+ position: fixed;
426
+
427
+ bottom: 20px;
428
+
429
+ right: 20px;
430
+
431
+ font-size: 80%;
432
+
433
+ }
434
+
435
+
436
+
437
+ #page-top a {
438
+
439
+ color: gray;
440
+
441
+ padding: 0 25px;
442
+
443
+ border-radius: 10px;
444
+
445
+ }
446
+
447
+
448
+
449
+ #page-top a:hover {
450
+
451
+ text-decoration: none;
452
+
453
+ }
454
+
455
+
456
+
457
+ .my-small {
458
+
459
+ font-size: 2.5em;
460
+
461
+ }
462
+
463
+
464
+
465
+ i.fa-angle-up {
466
+
467
+ padding: 1px;
468
+
469
+ }
470
+
471
+
472
+
473
+ .portfolio h3 {
474
+
475
+ color: black;
476
+
477
+ padding-top: 60px;
478
+
479
+ }
480
+
481
+
482
+
483
+
484
+
485
+ .icons h3 {
486
+
487
+ color: black;
488
+
489
+ padding-top: 60px;
490
+
491
+ }
492
+
493
+
494
+
495
+ .icons img {
496
+
497
+ width: 100px;
498
+
499
+ height: 100px;
500
+
501
+ }
502
+
503
+
504
+
505
+ .poster {
506
+
507
+ width: 100%;
508
+
509
+
510
+
511
+ }
512
+
513
+
514
+
515
+ .poster img {
516
+
517
+ width: 50%;
232
518
 
233
519
  text-align: center;
234
520
 
@@ -236,107 +522,99 @@
236
522
 
237
523
 
238
524
 
239
-
240
-
241
-
242
-
243
- .heading {
525
+ .poster h3 {
244
-
526
+
245
- padding-top: 50px;
527
+ padding-top: 60px;
246
-
247
- padding-bottom: 50px;
528
+
248
-
249
-
250
-
251
- }
529
+ }
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
530
+
531
+
532
+
533
+
534
+
535
+
536
+
261
- .lesson {
537
+ .website h3 {
262
-
538
+
263
- float: left;
539
+ color: black;
540
+
541
+ padding-top: 60px;
542
+
543
+ }
544
+
545
+
546
+
547
+ .website p {
548
+
549
+ padding-top: 10px;
550
+
551
+
552
+
553
+ }
554
+
555
+
556
+
557
+ .website img {
558
+
559
+ width: 50%;
560
+
561
+ text-align: center;
562
+
563
+ }
564
+
565
+
566
+
567
+ .FiveSeconds img {
264
568
 
265
569
  width: 25%;
266
570
 
571
+ text-align: center;
572
+
267
- }
573
+ }
268
-
269
-
270
-
574
+
575
+
576
+
271
- .lessons-icon {
577
+ .FiveSeconds h3 {
272
-
578
+
273
- position: relative;
579
+ padding-top: 60px;
274
-
580
+
275
- }
581
+ }
582
+
583
+
584
+
276
-
585
+ .Omikuji h3 {
586
+
277
-
587
+ padding-top: 60px;
588
+
278
-
589
+ }
590
+
591
+
592
+
279
- .lessons-icon p {
593
+ .Omikuji img {
280
-
281
- position: absolute;
594
+
282
-
283
- top: 44%;
595
+ width: 25%;
596
+
597
+ }
598
+
599
+
600
+
601
+ footer img {
284
602
 
285
603
  width: 100%;
286
604
 
287
- color: white;
288
-
289
- }
605
+ }
290
-
291
-
292
-
293
-
294
-
606
+
607
+
608
+
295
- .works {
609
+ footer p {
610
+
611
+ color: #b3aeb5;
612
+
613
+ font-size: 12px;
296
614
 
297
615
  text-align: center;
298
616
 
299
- }
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
- .works h2 {
310
-
311
- font-size: 20px;
312
-
313
- }
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
- .contact {
324
-
325
- text-align: center;
326
-
327
- }
328
-
329
-
330
-
331
- .contact h2 {
332
-
333
- padding-top: 100px;
617
+ border-top: 1px solid #f7f7f7;
334
-
335
- }
336
-
337
-
338
-
339
- .contact img {
340
618
 
341
619
  padding-top: 30px;
342
620
 
@@ -344,183 +622,13 @@
344
622
 
345
623
 
346
624
 
347
- #page-top {
625
+ footer {
348
-
626
+
349
- position: fixed;
627
+ padding-top: 30px;
350
-
628
+
351
- bottom: 20px;
629
+ padding-bottom: 20px;
352
-
353
- right: 20px;
630
+
354
-
355
- font-size: 80%;
356
-
357
- }
631
+ }
358
-
359
-
360
-
361
- #page-top a {
362
-
363
- color: gray;
364
-
365
- padding: 0 25px;
366
-
367
- border-radius: 10px;
368
-
369
- }
370
-
371
-
372
-
373
- #page-top a:hover {
374
-
375
- text-decoration: none;
376
-
377
- }
378
-
379
-
380
-
381
- .my-small {
382
-
383
- font-size: 2.5em;
384
-
385
- }
386
-
387
-
388
-
389
- i.fa-angle-up {
390
-
391
- padding: 1px;
392
-
393
- }
394
-
395
-
396
-
397
- .portfolio h3 {
398
-
399
- color: black;
400
-
401
- padding-top: 60px;
402
-
403
- }
404
-
405
-
406
-
407
-
408
-
409
- .icons h3 {
410
-
411
- color: black;
412
-
413
- padding-top: 60px;
414
-
415
- }
416
-
417
-
418
-
419
- .icons img {
420
-
421
- width: 100px;
422
-
423
- height: 100px;
424
-
425
- }
426
-
427
-
428
-
429
- .poster {
430
-
431
- width: 100%;
432
-
433
-
434
-
435
- }
436
-
437
-
438
-
439
- .poster img {
440
-
441
- width: 50%;
442
-
443
- text-align: center;
444
-
445
- }
446
-
447
-
448
-
449
- .poster h3 {
450
-
451
- padding-top: 60px;
452
-
453
- }
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
- .website h3 {
462
-
463
- color: black;
464
-
465
- padding-top: 60px;
466
-
467
- }
468
-
469
-
470
-
471
- .website p {
472
-
473
- padding-top: 10px;
474
-
475
-
476
-
477
- }
478
-
479
-
480
-
481
- .website img {
482
-
483
- width: 50%;
484
-
485
- text-align: center;
486
-
487
- }
488
-
489
-
490
-
491
- .FiveSeconds img {
492
-
493
- width: 25%;
494
-
495
- text-align: center;
496
-
497
- }
498
-
499
-
500
-
501
- .FiveSeconds h3 {
502
-
503
- padding-top: 60px;
504
-
505
- }
506
-
507
-
508
-
509
- .Omikuji h3 {
510
-
511
- padding-top: 60px;
512
-
513
- }
514
-
515
-
516
-
517
- .Omikuji img {
518
-
519
- width: 25%;
520
-
521
- }
522
-
523
-
524
632
 
525
633
 
526
634
 
@@ -528,7 +636,23 @@
528
636
 
529
637
  ```HTML
530
638
 
531
-
639
+ <!DOCTYPE html>
640
+
641
+ <html>
642
+
643
+ <head>
644
+
645
+ <meta charset="utf-8">
646
+
647
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
648
+
649
+ <title>My Portfolio</title>
650
+
651
+ <link rel="stylesheet" href="stylesheet.css">
652
+
653
+ <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
654
+
655
+ <!-- fontawesome -->
532
656
 
533
657
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
534
658
 
@@ -674,39 +798,37 @@
674
798
 
675
799
  </div><!-- container -->
676
800
 
677
- </div><!-- lesson-wrapper -->
801
+ </div><!-- lesson-wrapper -->
678
-
802
+
679
- <div class="works">
803
+ <div class="works">
680
-
681
- <div class="container">
804
+
682
-
683
- <h2>What I Made</h2>
805
+ <h2>What I Made</h2>
684
-
806
+
685
- <div class="portfolio">
807
+ <div class="portfolio">
686
-
808
+
687
- <h3><a href="#">My Portfolio</a></h3>
809
+ <h3><a href="#">My Portfolio</a></h3>
688
-
810
+
689
- <p>現在のサイトです。<br>
811
+ <p>現在のサイトです。<br>
690
-
812
+
691
- 今までに作った作品を載せているサイトです。<br>
813
+ 今までに作った作品を載せているサイトです。<br>
692
-
814
+
693
- このサイトはHTML,CSS,JSを使って作成しました。</p>
815
+ このサイトはHTML,CSS,JSを使って作成しました。</p>
694
-
816
+
695
- </div><!-- portfolio -->
817
+ </div><!-- portfolio -->
696
-
818
+
697
- <div class="icons">
819
+ <div class="icons">
698
-
820
+
699
- <h3>Logo</h3>
821
+ <h3>Logo</h3>
700
-
822
+
701
- <img src="img/instagram_logo_by_myself.jpg">
823
+ <img src="img/instagram_logo_by_myself.jpg">
702
-
824
+
703
- <img src="img/pokemon_ball.png">
825
+ <img src="img/pokemon_ball.png">
704
-
826
+
705
- <img src="img/smartphone.png">
827
+ <img src="img/smartphone.png">
706
-
828
+
707
- <p>Photoshop,Illustratorの操作の練習をしたくて、<br>
829
+ <p>Photoshop,Illustratorの操作の練習をしたくて、<br>
708
-
830
+
709
- youtubeで作り方の動画を見ながら作って見ました。</p>
831
+ youtubeで作り方の動画を見ながら作って見ました。</p>
710
832
 
711
833
  </div><!-- icons -->
712
834
 
@@ -774,8 +896,6 @@
774
896
 
775
897
  </div><!-- Omikuji -->
776
898
 
777
- </div><!-- container -->
778
-
779
899
  </div><!-- works -->
780
900
 
781
901
  <div class="contact">
@@ -804,56 +924,4 @@
804
924
 
805
925
  </footer><!-- footer -->
806
926
 
807
-
808
-
809
- <script>
810
-
811
- $(function () {
812
-
813
- var topBtn = $('#page-top');
814
-
815
- topBtn.hide();
816
-
817
- //スクロールが500に達したらボタン表示
818
-
819
- $(window).scroll(function () {
820
-
821
- if ($(this).scrollTop() > 500) {
822
-
823
- topBtn.fadeIn();
824
-
825
- } else {
826
-
827
- topBtn.fadeOut();
828
-
829
- }
830
-
831
- });
832
-
833
- //スルスルっとスクロールでトップへもどる
834
-
835
- topBtn.click(function () {
836
-
837
- $('body,html').animate({
838
-
839
- scrollTop: 0
840
-
841
- }, 500);
842
-
843
- return false;
844
-
845
- });
846
-
847
- });
848
-
849
- </script>
850
-
851
- </div>
852
-
853
- </body>
854
-
855
- </html>
856
-
857
-
858
-
859
927
  ```