teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

txt-contentsにmargin-top: 15pxを追加しました

2021/02/07 11:45

投稿

Yutataka
Yutataka

スコア0

title CHANGED
File without changes
body CHANGED
@@ -109,6 +109,27 @@
109
109
  }
110
110
 
111
111
  /* ここからCSSを書いていきましょう */
112
+ /* CSSのリセット(消さないでください) */
113
+ html, body,
114
+ ul, ol, li,
115
+ h1, h2, h3, h4, h5, h6, p, div {
116
+ margin: 0;
117
+ padding: 0;
118
+ }
119
+
120
+ body {
121
+ font-family: 'Hiragino Kaku Gothic ProN W3', sans-serif;
122
+ }
123
+
124
+ li {
125
+ list-style: none;
126
+ }
127
+
128
+ a {
129
+ text-decoration: none;
130
+ }
131
+
132
+ /* ここからCSSを書いていきましょう */
112
133
  header {
113
134
  background-color: rgba(34, 49, 52, 0.9);
114
135
  z-index: 10;
@@ -237,6 +258,7 @@
237
258
  }
238
259
 
239
260
  .txt-contents {
261
+ margin-top: 15px;
240
262
  width: 80%;
241
263
  margin: 0 auto;
242
264
  color: #b3aeb5;