質問編集履歴

1

コードの追加

2019/07/11 08:14

投稿

cherry8866
cherry8866

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  下記画像のように表示させたいのですが、paddingが効かないのですが、何か原因はあるのでしょうか。何度やっても解決しないので質問致しました。
2
2
 
3
-
3
+ 再投稿しました。
4
4
 
5
5
 
6
6
 
@@ -24,6 +24,32 @@
24
24
 
25
25
  ```
26
26
 
27
+ <!DOCTYPE html>
28
+
29
+ <html lang="ja">
30
+
31
+ <head>
32
+
33
+ <meta charset="UTF-8">
34
+
35
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0">
36
+
37
+ <title>シングルページレイアウト</title>
38
+
39
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?famliy=Raleway:700,400">
40
+
41
+ <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
42
+
43
+ <link rel="stylesheet" href="css/style.css">
44
+
45
+ <link rel="stylesheet" href="css/normalize.css">
46
+
47
+ </head>
48
+
49
+
50
+
51
+ <body>
52
+
27
53
  <header class="header">
28
54
 
29
55
  <p class="site-title-sub">Web designer's portfolio</p>
@@ -52,10 +78,130 @@
52
78
 
53
79
  ```ここに言語名を入力
54
80
 
81
+ @charset "UTF-8";
82
+
83
+ /* CSS Document */
84
+
85
+ html{
86
+
87
+ font-size:62.5%;
88
+
89
+ }
90
+
91
+ *,*::before,*::after{
92
+
93
+ box-sizing: border-box;
94
+
95
+ }
96
+
97
+ body{
98
+
99
+ background: #151515 url('../images/bg.png') no-repeat fixed left bottom;
100
+
101
+ background-size:cover;
102
+
103
+ color:#fff;
104
+
105
+ text-align:center;
106
+
107
+ font-size: 1.4rem;
108
+
109
+ font-family:Raleway,"Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
110
+
111
+ }
112
+
55
113
  .header{
56
114
 
57
115
  padding: 170px 30px 80px;
58
116
 
59
117
  }
60
118
 
119
+ .site-title-sub{
120
+
121
+ margin: 0 0 30px;
122
+
123
+ letter-spacing: 1px;
124
+
125
+ font-size: 2.2rem;
126
+
127
+ }
128
+
129
+ .site-title-sub::before,
130
+
131
+ .site-title-sub::after {
132
+
133
+ content: '';
134
+
135
+ display: inline-block;
136
+
137
+ width: 140px;
138
+
139
+ height: 2px;
140
+
141
+ margin: 0 30px;
142
+
143
+ background-color: #fff;
144
+
145
+ vertical-align: middle;
146
+
147
+ }
148
+
149
+ .site-title{
150
+
151
+ margin: 50px 0 40px;
152
+
153
+ font-size: 7.6rem;
154
+
155
+ }
156
+
157
+ .site-description {
158
+
159
+ margin-bottom: 50px;
160
+
161
+ color: #888;
162
+
163
+ font-size: 1.6rem;
164
+
165
+ }
166
+
167
+ .button{
168
+
169
+ display: inline-block;
170
+
171
+ width: 200px;
172
+
173
+ padding: 20px;
174
+
175
+ text-decoration: none;
176
+
177
+ border-radius: 4px;
178
+
179
+ color: #fff;
180
+
181
+ background-color: #afa58d;
182
+
183
+ letter-spacing: 1px;
184
+
185
+ font-size: 1.2rem;
186
+
187
+ }
188
+
189
+ .button:hover{
190
+
191
+ opacity: 0.9;
192
+
193
+ }
194
+
195
+ .button-showy{
196
+
197
+ background-color: #D29E04;
198
+
199
+ }
200
+
201
+ .buttons .button{
202
+
203
+ margin: 10px;
204
+
205
+ }
206
+
61
207
  ```