質問編集履歴
1
最新版に変更しました。
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
お問い合わせ(contents-title)が、左寄せできない
|
body
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-

|
2
2
|
|
3
3
|
コードは、以下になります。。
|
4
|
-
```<!DOCTYPE html>
|
5
|
-
<html>
|
4
|
+
```<html>
|
6
5
|
<head>
|
7
6
|
<meta charset="utf-8">
|
8
7
|
<title>Progate</title>
|
@@ -41,7 +40,7 @@
|
|
41
40
|
</h2>
|
42
41
|
</div>
|
43
42
|
<div class="contents">
|
44
|
-
<h3 class="
|
43
|
+
<h3 class="section-title">
|
45
44
|
学べるレッスン
|
46
45
|
</h3>
|
47
46
|
<div class="contents-item">
|
@@ -80,7 +79,6 @@
|
|
80
79
|
<div class="footer-logo">
|
81
80
|
Progate
|
82
81
|
</div>
|
83
|
-
</div>
|
84
82
|
<div class="footer-list">
|
85
83
|
<ul>
|
86
84
|
<li>
|
@@ -94,9 +92,9 @@
|
|
94
92
|
</li>
|
95
93
|
</ul>
|
96
94
|
</div>
|
95
|
+
</div>
|
97
96
|
</body>
|
98
97
|
</html>
|
99
|
-
コード
|
100
98
|
```
|
101
99
|
```/* CSSのリセット(消さないでください) */
|
102
100
|
html, body,
|
@@ -112,125 +110,122 @@
|
|
112
110
|
}
|
113
111
|
|
114
112
|
/* ここからCSSを記述してください */
|
115
|
-
|
113
|
+
body {
|
116
|
-
font-family:"Avenir Next", "Hiragino Kaku Gothic ProN W3", sans-serif;
|
114
|
+
font-family: "Avenir Next", "Hiragino Kaku Gothic ProN W3", sans-serif;
|
117
115
|
}
|
118
116
|
|
119
|
-
.header{
|
117
|
+
.header {
|
120
|
-
height:90px;
|
121
|
-
background-color:#26d0c9;
|
118
|
+
background-color: #26d0c9;
|
122
|
-
color:#fff;
|
119
|
+
color: #fff;
|
120
|
+
height: 90px;
|
123
121
|
}
|
124
122
|
|
125
|
-
.header-logo{
|
123
|
+
.header-logo {
|
124
|
+
float: left;
|
126
|
-
font-size:36px;
|
125
|
+
font-size: 36px;
|
127
|
-
float:left;
|
128
|
-
|
126
|
+
padding: 20px 40px;
|
129
127
|
}
|
130
128
|
|
131
|
-
.header-list
|
129
|
+
.header-list {
|
132
|
-
float:left;
|
130
|
+
float: left;
|
133
|
-
margin:33px 20px;
|
134
131
|
}
|
135
132
|
|
136
|
-
.
|
133
|
+
.header-list li {
|
134
|
+
float: left;
|
137
|
-
|
135
|
+
padding: 33px 20px;
|
138
136
|
}
|
139
137
|
|
140
|
-
.
|
138
|
+
.main {
|
139
|
+
padding: 100px 80px;
|
141
|
-
|
140
|
+
overflow:hidden;
|
142
141
|
}
|
143
142
|
|
143
|
+
|
144
|
-
.copy-container
|
144
|
+
.copy-container h1 {
|
145
|
-
|
145
|
+
font-size: 140px;
|
146
146
|
}
|
147
147
|
|
148
|
-
.copy-container h2{
|
148
|
+
.copy-container h2 {
|
149
|
-
font-size:60px;
|
149
|
+
font-size: 60px;
|
150
|
-
padding-top:40px;
|
151
150
|
}
|
152
151
|
|
153
|
-
.
|
152
|
+
.copy-container span {
|
154
|
-
|
153
|
+
color: #ff4a4a;
|
155
|
-
height:500px;
|
156
154
|
}
|
157
155
|
|
158
|
-
h3{
|
159
|
-
|
156
|
+
.contents {
|
160
|
-
padding-bottom:15px;
|
161
|
-
margin-
|
157
|
+
margin-top: 100px;
|
162
|
-
|
158
|
+
overflow:hidden;
|
163
159
|
}
|
164
160
|
|
165
|
-
.
|
161
|
+
.section-title {
|
162
|
+
border-bottom: 2px solid #dee7ec;
|
166
|
-
|
163
|
+
font-size: 28px;
|
167
|
-
padding-
|
164
|
+
padding-bottom: 15px;
|
168
|
-
margin-bottom:
|
165
|
+
margin-bottom: 50px;
|
169
|
-
margin-top:50px;
|
170
166
|
}
|
171
167
|
|
172
|
-
|
168
|
+
.contents-item {
|
173
|
-
|
169
|
+
float: left;
|
174
|
-
|
170
|
+
margin-right: 40px;
|
175
171
|
}
|
176
172
|
|
177
|
-
.
|
173
|
+
.contents-item p {
|
174
|
+
font-size: 24px;
|
178
|
-
|
175
|
+
margin-top: 30px;
|
179
176
|
}
|
177
|
+
|
180
|
-
.
|
178
|
+
.contact-form {
|
181
|
-
padding-
|
179
|
+
padding-top: 100px;
|
182
|
-
font-size:18px;
|
183
180
|
}
|
184
181
|
|
185
|
-
input {
|
182
|
+
input, textarea {
|
183
|
+
width: 400px;
|
184
|
+
margin-top: 10px;
|
185
|
+
margin-bottom: 30px;
|
186
|
+
padding: 20px;
|
187
|
+
font-size: 18px;
|
186
|
-
border:1px solid #dee7ec;
|
188
|
+
border: 1px solid #dee7ec;
|
187
|
-
width:400px;
|
188
|
-
padding:20px;
|
189
|
-
margin-bottom:30px;
|
190
|
-
font-size:18px;
|
191
189
|
}
|
192
190
|
|
193
|
-
|
191
|
+
.contact-submit {
|
194
|
-
|
192
|
+
background-color: #dee7ec;
|
195
|
-
width:400px;
|
196
|
-
padding:20px;
|
197
|
-
|
193
|
+
color: #889eab;
|
198
194
|
}
|
199
195
|
|
200
|
-
.
|
196
|
+
.footer {
|
201
|
-
font-size:18px;
|
202
|
-
background-color:#
|
197
|
+
background-color: #2f5167;
|
198
|
+
color: #fff;
|
199
|
+
height: 120px;
|
203
|
-
|
200
|
+
padding: 40px;
|
201
|
+
|
204
202
|
}
|
205
203
|
|
206
|
-
.footer{
|
204
|
+
.footer-logo {
|
207
|
-
background-color:#2f5167;
|
208
|
-
|
205
|
+
float: left;
|
209
|
-
|
206
|
+
font-size: 32px;
|
210
|
-
height:200px;
|
211
|
-
|
212
207
|
}
|
213
208
|
|
214
|
-
.footer-
|
209
|
+
.footer-list {
|
215
|
-
font-size:32px;
|
216
|
-
float:
|
210
|
+
float: right;
|
217
211
|
}
|
218
212
|
|
219
|
-
.footer-list{
|
213
|
+
.footer-list li {
|
220
|
-
float:right;
|
221
|
-
color:#fff;
|
222
|
-
padding-bottom:20px;
|
214
|
+
padding-bottom: 20px;
|
223
215
|
}
|
224
216
|
|
225
|
-
|
217
|
+
.contents-title {
|
218
|
+
border-bottom: 2px solid #dee7ec;
|
219
|
+
font-size: 28px;
|
226
|
-
padding-bottom:
|
220
|
+
padding-bottom: 15px;
|
221
|
+
margin-bottom: 50px;
|
227
222
|
}
|
228
|
-
コード
|
229
223
|
```
|
230
224
|
|
231
225
|
何が違うのでしょうか?
|
232
226
|
|
233
|
-
|
227
|
+
初めは、「学べるレッスン」と同じ.section-titleで作っていましたが、
|
228
|
+
「お問い合わせ」だけ、左に寄らないので、.contents-titleとして、cssを別に書いていじってみました。。ができずでした。。
|
234
|
-
|
229
|
+
他にも、align="right"など試しましたが、解決できませんでした。。
|
235
230
|
|
236
231
|
上記、どこが問題なのか教えていただきたいです????♂️
|