質問編集履歴
5
回答得られたため追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -245,3 +245,55 @@
|
|
245
245
|
}
|
246
246
|
|
247
247
|
```
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
**追記**
|
252
|
+
|
253
|
+
回答より、ネガティブマージンを使用してはどうか?とのご意見が有ったため、下記のコードを参考に修正することで、要素を重ねることが出来ました。
|
254
|
+
|
255
|
+
```ここに言語を入力
|
256
|
+
|
257
|
+
.board{
|
258
|
+
|
259
|
+
background-color: rgba(25,25,112,0.5);
|
260
|
+
|
261
|
+
/* height: auto; 削除 */
|
262
|
+
|
263
|
+
width: 37%;
|
264
|
+
|
265
|
+
/* position: absolute; 削除 */
|
266
|
+
|
267
|
+
/* top:30px; 削除 */
|
268
|
+
|
269
|
+
height: 1080px;
|
270
|
+
|
271
|
+
margin-top: -40px; /* 追加 */
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
}
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
修正
|
280
|
+
|
281
|
+
```ここに言語を入力
|
282
|
+
|
283
|
+
.board{
|
284
|
+
|
285
|
+
background-color: rgba(47, 47, 68, 0.5);
|
286
|
+
|
287
|
+
width: 37%;
|
288
|
+
|
289
|
+
/* position: relative; */
|
290
|
+
|
291
|
+
padding-top: 250px;
|
292
|
+
|
293
|
+
margin-top: -250px;
|
294
|
+
|
295
|
+
max-height: 1080px;
|
296
|
+
|
297
|
+
}
|
298
|
+
|
299
|
+
```
|
4
個人情報を含む内容が有ったため削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,9 +74,9 @@
|
|
74
74
|
|
75
75
|
<h2>SNS</h2>
|
76
76
|
|
77
|
-
<a href="
|
77
|
+
<a href=""><img src="./img/twitter.png"></a>
|
78
|
-
|
78
|
+
|
79
|
-
<a href="
|
79
|
+
<a href=""><img src="./img/instagram.png" ></a>
|
80
80
|
|
81
81
|
</div>
|
82
82
|
|
3
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
position:relateive abusolute
|
1
|
+
position:relateive abusoluteで配置が崩れる
|
test
CHANGED
File without changes
|
2
個人情報含まれていたため削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
<h1>WELLCOME</h1>
|
70
70
|
|
71
|
-
<p>
|
71
|
+
<p><br>
|
72
72
|
|
73
73
|
WEB site</p>
|
74
74
|
|
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,213 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
アドバイス頂ければ幸いです。
|
38
|
+
|
39
|
+
```ここに言語を入力
|
40
|
+
|
41
|
+
<body>
|
42
|
+
|
43
|
+
<section>
|
44
|
+
|
45
|
+
<div id="top" class="big_bg">
|
46
|
+
|
47
|
+
<header class="main_header">
|
48
|
+
|
49
|
+
<nav>
|
50
|
+
|
51
|
+
<ul>
|
52
|
+
|
53
|
+
<li><a href="#main">Top</a></li>
|
54
|
+
|
55
|
+
<li><a href="#works">Works</a></li>
|
56
|
+
|
57
|
+
<li><a href="#profile">Profile</a></li>
|
58
|
+
|
59
|
+
</ul>
|
60
|
+
|
61
|
+
</nav>
|
62
|
+
|
63
|
+
</header>
|
64
|
+
|
65
|
+
<main id="main">
|
66
|
+
|
67
|
+
<div class="board">
|
68
|
+
|
69
|
+
<h1>WELLCOME</h1>
|
70
|
+
|
71
|
+
<p>Miki Kawano's<br>
|
72
|
+
|
73
|
+
WEB site</p>
|
74
|
+
|
75
|
+
<h2>SNS</h2>
|
76
|
+
|
77
|
+
<a href="https://twitter.com/shinitei_njnj"><img src="./img/twitter.png"></a>
|
78
|
+
|
79
|
+
<a href="https://www.instagram.com/xiachuan.lin/"><img src="./img/instagram.png" ></a>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</main>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</section>
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
```ここに言語を入力
|
92
|
+
|
93
|
+
@charset "utf-8";
|
94
|
+
|
95
|
+
html{
|
96
|
+
|
97
|
+
font-size: 2.5vw;
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
* {
|
102
|
+
|
103
|
+
margin: 0px;
|
104
|
+
|
105
|
+
padding: 0px;
|
106
|
+
|
107
|
+
box-sizing: border-box;
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
body{
|
114
|
+
|
115
|
+
font-size: 1rem;
|
116
|
+
|
117
|
+
font-family: Impact,Charcoal;
|
118
|
+
|
119
|
+
color: white;
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
h1{
|
124
|
+
|
125
|
+
font-size: 8vw;
|
126
|
+
|
127
|
+
color: black;
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
h2{
|
132
|
+
|
133
|
+
font-size: 7vw;
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
#works, #profile, fotter{
|
138
|
+
|
139
|
+
height: 1080px;
|
140
|
+
|
141
|
+
background-color: #333333;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
header{
|
146
|
+
|
147
|
+
background-color: rgba(0,0,255,0.5);
|
148
|
+
|
149
|
+
padding: 0 2%;
|
150
|
+
|
151
|
+
height: auto;
|
152
|
+
|
153
|
+
justify-content: space-between;
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
a{
|
158
|
+
|
159
|
+
text-decoration: none;
|
160
|
+
|
161
|
+
color: white;
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
.big_bg{
|
166
|
+
|
167
|
+
background-size: contain;
|
168
|
+
|
169
|
+
background-position: right top;
|
170
|
+
|
171
|
+
background-repeat: no-repeat;
|
172
|
+
|
173
|
+
position: relative;
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
#top{
|
178
|
+
|
179
|
+
background-color:#FF00FF ;
|
180
|
+
|
181
|
+
background-image: url("../img/top.png");
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
#top header{
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
nav ul{
|
190
|
+
|
191
|
+
display: flex;
|
192
|
+
|
193
|
+
flex-wrap: wrap;
|
194
|
+
|
195
|
+
justify-content: flex-end;
|
196
|
+
|
197
|
+
width: 100%;
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
nav ul li{
|
204
|
+
|
205
|
+
position: static;
|
206
|
+
|
207
|
+
list-style: none;
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
nav ul li a{
|
212
|
+
|
213
|
+
margin-right:20px;
|
214
|
+
|
215
|
+
font-size: 5vw;
|
216
|
+
|
217
|
+
color: white;
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
.board{
|
222
|
+
|
223
|
+
background-color: rgba(25,25,112,0.5);
|
224
|
+
|
225
|
+
height: auto;
|
226
|
+
|
227
|
+
width: 37%;
|
228
|
+
|
229
|
+
position: absolute;
|
230
|
+
|
231
|
+
top:30px;
|
232
|
+
|
233
|
+
height: 1080px;
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
.board a img{
|
240
|
+
|
241
|
+
width: 10vw;
|
242
|
+
|
243
|
+
height: auto;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
```
|