質問編集履歴

1

ソースコードを追加しました

2019/03/08 16:29

投稿

tetra
tetra

スコア19

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  最近HTML/CSSの勉強を始めたものです。
4
4
 
5
- HTML/CSSで簡単なHPを作
5
+ HTML/CSSで簡単なHPを作っています
6
+
7
+ 初心者なのでコードがひどいと思いますがよろしくお願いします。
6
8
 
7
9
 
8
10
 
@@ -26,6 +28,160 @@
26
28
 
27
29
  ```
28
30
 
31
+ #topbar{
32
+
33
+ margin: 0 auto;
34
+
35
+ width: 1000px;
36
+
37
+ height: 40px;
38
+
39
+ }
40
+
41
+
42
+
43
+ body{
44
+
45
+ margin: 0;
46
+
47
+ padding: 0;
48
+
49
+ font-family: 'Source Sans Pro', sans-serif;
50
+
51
+ }
52
+
53
+ .topbar-section{
54
+
55
+ float: left;
56
+
57
+ border-left: 1px #C0C0C0 solid;
58
+
59
+ height:100%;
60
+
61
+
62
+
63
+ }
64
+
65
+ #logo{
66
+
67
+ margin-top: 8px;
68
+
69
+ margin-right: 10px;
70
+
71
+ float: left;
72
+
73
+ width: 100px;
74
+
75
+ }
76
+
77
+
78
+
79
+ #signin-image{
80
+
81
+ width: 30px;
82
+
83
+ float: left;
84
+
85
+ margin-left: 10px;
86
+
87
+ margin-top: 8px;
88
+
89
+ }
90
+
91
+
92
+
93
+ #signin-text{
94
+
95
+ font-size: 15px;
96
+
97
+ margin-left: 15px;
98
+
99
+ float: left;
100
+
101
+ margin-top: 10px;
102
+
103
+ }
104
+
105
+ .bell-div{
106
+
107
+ float: left;
108
+
109
+ }
110
+
111
+ .wigg{
112
+
113
+ margin-top: 0;
114
+
115
+ margin-right: 6px;
116
+
117
+ margin-left:40px;
118
+
119
+ height: 40px;
120
+
121
+ float: left;
122
+
123
+ }
124
+
125
+ .bell-img{
126
+
127
+ width: 30px;
128
+
129
+ margin-top: 6px;
130
+
131
+ margin-right: 8px;
132
+
133
+ }
134
+
135
+ .topbar-menu{
136
+
137
+ font-weight: bold;
138
+
139
+ font-size: 90%;
140
+
141
+ padding: 13px 15px 0 15px;
142
+
143
+ height:27px;
144
+
145
+ }
146
+
147
+ .more-img{
148
+
149
+ margin-top: 15px;
150
+
151
+ width: 15px;
152
+
153
+ }
154
+
155
+ .clear{
156
+
157
+ clear: both;
158
+
159
+ }
160
+
161
+ #sch-txt{
162
+
163
+ margin-left: 10px;
164
+
165
+ padding:5px;
166
+
167
+ margin: 5px 0 5px 5px;
168
+
169
+ float: left;
170
+
171
+ }
172
+
173
+ #btn{
174
+
175
+ height: 25px;
176
+
177
+ background: #7fbfff;
178
+
179
+ margin-top:5px;
180
+
181
+ margin-left: 10px;
182
+
183
+ }
184
+
29
185
  #menu-bar-container{
30
186
 
31
187
  border-top: 1px solid #CCCCCC;
@@ -34,7 +190,7 @@
34
190
 
35
191
  width:100%;
36
192
 
37
- height:90px;
193
+ height:140px;
38
194
 
39
195
  }
40
196
 
@@ -92,7 +248,71 @@
92
248
 
93
249
  ```
94
250
 
251
+ <html>
252
+
253
+ <head>
254
+
255
+ <title>BBC News</title>
256
+
257
+ <link rel="stylesheet" type="text/css" href="bbc.css">
258
+
259
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
260
+
261
+
262
+
263
+ </head>
264
+
265
+ <body>
266
+
267
+ <div id="topbar">
268
+
269
+ <img id="logo" src="https://www.completewebdevelopercourse.com/content/2-css/images/bbc-logo.png">
270
+
271
+ <div id="signin-div" class="topbar-section">
272
+
273
+ <img id="signin-image" src="https://www.completewebdevelopercourse.com/content/2-css/images/signinimage.png">
274
+
275
+ <span id="signin-text"><a href=""> Sign in</a></span>
276
+
277
+ </div>
278
+
279
+ <div class="bell-div">
280
+
281
+ <img class="wigg" src="https://www.completewebdevelopercourse.com/content/2-css/images/wigglyline.png">
282
+
283
+ <img class="bell-img" src="https://www.completewebdevelopercourse.com/content/2-css/images/bell.png">
284
+
285
+ </div>
286
+
287
+ <div class="topbar-section topbar-menu">Nwes</div>
288
+
289
+ <div class="topbar-section topbar-menu">Sport</div>
290
+
291
+ <div class="topbar-section topbar-menu">Weather</div>
292
+
293
+ <div class="topbar-section topbar-menu">iPlayer</div>
294
+
295
+ <div class="topbar-section topbar-menu">TV</div>
296
+
297
+ <div class="topbar-section topbar-menu">More</div>
298
+
299
+ <img class="more-img" src="https://www.completewebdevelopercourse.com/content/2-css/images/more-arrow.png">
300
+
301
+ <div class="clear"></div>
302
+
303
+ <form>
304
+
305
+ <input id="sch-txt"type="text" placeholder="Search">
306
+
307
+ <input id="btn" type="submit" value="検索">
308
+
309
+ </form>
310
+
311
+ </div>
312
+
313
+ <div class="clear"></div>
314
+
95
- <div id="menu-bar-container">
315
+ <div id="menu-bar-container">
96
316
 
97
317
  <div class="menubar">
98
318
 
@@ -134,6 +354,10 @@
134
354
 
135
355
  </div>
136
356
 
357
+ </body>
358
+
359
+ </html>
360
+
137
361
  ```
138
362
 
139
363