質問編集履歴

1

コードの追加をいたしました。

2021/08/23 01:24

投稿

sawayakaunagi
sawayakaunagi

スコア17

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,67 @@
6
6
 
7
7
  コード
8
8
 
9
+ <!DOCTYPE html>
10
+
11
+ <html>
12
+
13
+ <head>
14
+
15
+ <meta charset="utf-8">
16
+
17
+ <title>Profile</title>
18
+
19
+ <link rel="stylesheet" href="../css/level1.css">
20
+
21
+ </head>
22
+
23
+ <body>
24
+
25
+ <div class="header">
26
+
27
+ <div class="header-contents">
28
+
29
+ <p class="header-left">Profile</p>
30
+
31
+ <div class="header-right">
32
+
33
+ <a href="#" class="btn-About" href="#index">About</a>
34
+
35
+ <a href="#" class="btn Bicycle" href="#index2">Bicycle </a>
36
+
37
+ </div>
38
+
39
+ </div>
40
+
41
+ </div>
42
+
43
+ </div>
44
+
45
+ <div class="main">
46
+
47
+ <div class="main-contents">
48
+
49
+ <div class="main-photo">
50
+
51
+ <img src="https://code-step.com/demo/html/profile/img/mainvisual.jpg" alt="bike-image" class="main-image">
52
+
53
+ </div>
54
+
55
+ <h3 id="index">About</h3>
56
+
57
+ <div class="main-icon">
58
+
59
+ <img src="https://code-step.com/demo/html/profile/img/about.jpg" alt="icon-image">
60
+
61
+ <h4>KAKERU MIYAICHI</h4><br><p>テキストmain</p>
62
+
63
+ </div>
64
+
65
+ <div class="option">
66
+
67
+ <div class="main-intro">
68
+
9
- <p id="index2" class="bicycle">Bicycle</p>
69
+ <p id="index2" class="bicycle">Bicycle</p>
10
70
 
11
71
  <div class="intro-image">
12
72
 
@@ -68,6 +128,110 @@
68
128
 
69
129
  コード
70
130
 
131
+ .header-contents p btn{
132
+
133
+ float: left;
134
+
135
+ }
136
+
137
+ .header-left{
138
+
139
+ padding: 4px 24px;
140
+
141
+ background-color: black;
142
+
143
+ color: white;
144
+
145
+ font-size: 24px;
146
+
147
+ float: left;
148
+
149
+ }
150
+
151
+ .header-right{
152
+
153
+ font-size: 16px;
154
+
155
+ padding: 32px 16px 0 0;
156
+
157
+ display: inline-block;
158
+
159
+ float:right;
160
+
161
+ color: black;
162
+
163
+ }
164
+
165
+ .header-right a{
166
+
167
+ color: black;
168
+
169
+ text-decoration: none;
170
+
171
+ padding: 24px 8px 0 0;
172
+
173
+ }
174
+
175
+ .main-photo img{
176
+
177
+ display: block;
178
+
179
+ width:100%;
180
+
181
+ }
182
+
183
+ .main-contents h3{
184
+
185
+ text-align: center;
186
+
187
+ font-size: 32px;
188
+
189
+ padding: 8px 0 8px 0;
190
+
191
+ text-decoration:underline;
192
+
193
+ text-decoration-thickness: 3px
194
+
195
+ }
196
+
197
+ .main-icon{
198
+
199
+
200
+
201
+ }
202
+
203
+ .main-icon img{
204
+
205
+ height:80px;
206
+
207
+ width: 80px;
208
+
209
+ border-radius: 50%;
210
+
211
+ float: left;
212
+
213
+ margin-left: 80px;
214
+
215
+ }
216
+
217
+ .main-icon h4{
218
+
219
+ margin:40px 0 0 184px;
220
+
221
+ }
222
+
223
+ .main-icon p{
224
+
225
+ margin: 0 0 0 184px
226
+
227
+ }
228
+
229
+ .last{
230
+
231
+ width: 100%;
232
+
233
+ }
234
+
71
235
  .bicycle{
72
236
 
73
237
  font-size: 32px;
@@ -130,6 +294,4 @@
130
294
 
131
295
  }
132
296
 
133
-
134
-
135
297
  ```