Skip to content

Commit e666e73

Browse files
authored
CSSの演習問題を、DOMの内容に合うように修正 (#2)
1 parent c9608f3 commit e666e73

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

docs/02-css/_samples/hello-css/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<title>タイトル</title>
77
</head>
88
<body>
9-
<p id="greeting">Hello CSS!</p>
9+
<p id="greeting">こんにちは、CSS</p>
1010
</body>
1111
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#greeting {
22
color: green;
3+
background-color: lightgray;
34
font-size: 40px;
45
}

docs/02-css/hello-css.jpg

57.7 KB
Loading

docs/02-css/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
100100

101101
### 問題 1
102102

103-
次のように、画面に `こんにちは、CSS!` と表示して、文字色を緑色、文字サイズを `40px` にしてください。
103+
次のように、画面に `こんにちは、CSS!` と表示して、文字色を `green` に、背景色を `lightgray` に、文字サイズを `40px` にしてください。
104+
105+
![こんにちは、CSS!](./hello-css.jpg)
104106

105107
<Answer title="こんにちは、CSS!">
106108

@@ -112,14 +114,15 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
112114
<title>タイトル</title>
113115
</head>
114116
<body>
115-
<p id="greeting">Hello CSS!</p>
117+
<p id="greeting">こんにちは、CSS</p>
116118
</body>
117119
</html>
118120
```
119121

120122
```css
121123
#greeting {
122124
color: green;
125+
background-color: lightgray;
123126
font-size: 40px;
124127
}
125128
```

0 commit comments

Comments
 (0)