質問編集履歴

2

code

2018/10/06 12:33

投稿

satom0102
satom0102

スコア12

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,8 @@
13
13
  「HTML」
14
14
 
15
15
 
16
+
17
+ ```HTML
16
18
 
17
19
  <!DOCTYPE html>
18
20
 
@@ -44,11 +46,15 @@
44
46
 
45
47
  </html>
46
48
 
49
+ ```
50
+
47
51
 
48
52
 
49
53
  「CSS」
50
54
 
51
55
 
56
+
57
+ ```CSS
52
58
 
53
59
  body{
54
60
 
@@ -103,3 +109,5 @@
103
109
  color: #4b0082;
104
110
 
105
111
  }
112
+
113
+ ```

1

テキスト

2018/10/06 12:33

投稿

satom0102
satom0102

スコア12

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,99 @@
7
7
  <p>と<a>の間に1文字分の段落を入れたいです。
8
8
 
9
9
  いくら調べても分からないため、質問致しました。
10
+
11
+
12
+
13
+ 「HTML」
14
+
15
+
16
+
17
+ <!DOCTYPE html>
18
+
19
+ <html lang="ja">
20
+
21
+ <head>
22
+
23
+ <meta charset="UTF-8">
24
+
25
+ <title>昔話</title>
26
+
27
+ <link rel="stylesheet" href="challenge_momotaro.css">
28
+
29
+ </head>
30
+
31
+ <body>
32
+
33
+ <h1>桃太郎</h1>
34
+
35
+  <p>むかしむかし、あるところにおじいさんとおばあさんが住んでいました。おじいさんは山へ芝刈りに、おばあさんは川に洗濯に行きました。</p>
36
+
37
+ <p>おばあさんが洗濯をしていると、川上からどんぶらこどんぶらこと、大きな桃が流れてきました。</p>
38
+
39
+ <a href="http://codecamp.jp">CodeCamp</a>
40
+
41
+ </div>
42
+
43
+ </body>
44
+
45
+ </html>
46
+
47
+
48
+
49
+ 「CSS」
50
+
51
+
52
+
53
+ body{
54
+
55
+ background-color: black;
56
+
57
+ }
58
+
59
+
60
+
61
+ h1 { margin-top: 0; margin-bottom: 0;}
62
+
63
+ a { margin-top: 2;}
64
+
65
+ p { margin-top: 0; margin-bottom: 0; }
66
+
67
+
68
+
69
+ h1{
70
+
71
+ font-size: 24px;
72
+
73
+ color:red;
74
+
75
+ text-align: center;
76
+
77
+ padding: 0.5em 0;
78
+
79
+ border-top: dashed 3px white;
80
+
81
+ border-bottom: dashed 3px white;›
82
+
83
+ padding:0.5 0;
84
+
85
+ }
86
+
87
+
88
+
89
+ p{
90
+
91
+ font-size: 16px;
92
+
93
+ color:#ffffff;
94
+
95
+ }
96
+
97
+
98
+
99
+ a{
100
+
101
+ font-size: 16px;
102
+
103
+ color: #4b0082;
104
+
105
+ }