質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
(2017-08-04 07:14修正)
|
2
|
+
|
1
3
|
初めて質問させていただきます。
|
2
4
|
|
3
5
|
|
@@ -34,6 +36,208 @@
|
|
34
36
|
|
35
37
|
組み方とCSSのあて方が悪いようでうまくいきません。
|
36
38
|
|
39
|
+
今はセマンティックを無視するような
|
40
|
+
|
41
|
+
力技で組んでいますが、
|
42
|
+
|
43
|
+
もっと分かりやすく
|
44
|
+
|
45
|
+
管理しやすい構成にしたいです。
|
46
|
+
|
47
|
+
```html
|
48
|
+
|
49
|
+
<html>
|
50
|
+
|
51
|
+
<body>
|
52
|
+
|
53
|
+
<header></header>
|
54
|
+
|
55
|
+
<main class="clearfix">
|
56
|
+
|
57
|
+
<div class="A"></div>
|
58
|
+
|
59
|
+
<div class="BandC">
|
60
|
+
|
61
|
+
<div class="B"></div>
|
62
|
+
|
63
|
+
<div class="C"></div>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</main>
|
68
|
+
|
69
|
+
<footer></footer>
|
70
|
+
|
71
|
+
<style>
|
72
|
+
|
73
|
+
header,
|
74
|
+
|
75
|
+
footer {
|
76
|
+
|
77
|
+
position: relative;
|
78
|
+
|
79
|
+
width: 100%;
|
80
|
+
|
81
|
+
height: 50px;
|
82
|
+
|
83
|
+
background: #0468AD;
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
main {
|
90
|
+
|
91
|
+
width: 1000px;
|
92
|
+
|
93
|
+
margin: 0 auto;
|
94
|
+
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
.clearfix::after {
|
100
|
+
|
101
|
+
content: "";
|
102
|
+
|
103
|
+
display: block;
|
104
|
+
|
105
|
+
clear: both;
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
.A {
|
112
|
+
|
113
|
+
float: left;
|
114
|
+
|
115
|
+
width: 600px;
|
116
|
+
|
117
|
+
height: 400px;
|
118
|
+
|
119
|
+
background: #719BA5;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
.BandC {
|
126
|
+
|
127
|
+
float: right;
|
128
|
+
|
129
|
+
width: 400px;
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
.B,
|
136
|
+
|
137
|
+
.C {
|
138
|
+
|
139
|
+
width: 100%;
|
140
|
+
|
141
|
+
height: 200px;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
.B {
|
148
|
+
|
149
|
+
background: #337D8B;
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
.C {
|
156
|
+
|
157
|
+
background: #013356;
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
header::before {
|
164
|
+
|
165
|
+
position: absolute;
|
166
|
+
|
167
|
+
display: block;
|
168
|
+
|
169
|
+
content: "";
|
170
|
+
|
171
|
+
background: #05BAA3;
|
172
|
+
|
173
|
+
width: calc(50% + 100px);
|
174
|
+
|
175
|
+
height: 400px;
|
176
|
+
|
177
|
+
top: 50px;
|
178
|
+
|
179
|
+
left: 0;
|
180
|
+
|
181
|
+
z-index: -10;
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
header::after {
|
188
|
+
|
189
|
+
position: absolute;
|
190
|
+
|
191
|
+
display: block;
|
192
|
+
|
193
|
+
content: "";
|
194
|
+
|
195
|
+
background: #1E4F5B;
|
196
|
+
|
197
|
+
width: calc(50% - 100px);
|
198
|
+
|
199
|
+
height: 200px;
|
200
|
+
|
201
|
+
top: 50px;
|
202
|
+
|
203
|
+
right: 0;
|
204
|
+
|
205
|
+
z-index: -10;
|
206
|
+
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
footer::before {
|
212
|
+
|
213
|
+
position: absolute;
|
214
|
+
|
215
|
+
display: block;
|
216
|
+
|
217
|
+
content: "";
|
218
|
+
|
219
|
+
background: #A4E6F3;
|
220
|
+
|
221
|
+
width: calc(50% - 100px);
|
222
|
+
|
223
|
+
height: 200px;
|
224
|
+
|
225
|
+
bottom: 50px;
|
226
|
+
|
227
|
+
right: 0;
|
228
|
+
|
229
|
+
z-index: -10;
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
</style>
|
234
|
+
|
235
|
+
</body>
|
236
|
+
|
237
|
+
</html>
|
238
|
+
|
239
|
+
```
|
240
|
+
|
37
241
|
|
38
242
|
|
39
243
|
###補足情報(言語/FW/ツール等のバージョンなど)
|