Skip to content

Commit 0748334

Browse files
committed
CSS のボックスモデルの演習問題を削除
1 parent 4ad2be6 commit 0748334

File tree

3 files changed

+0
-64
lines changed

3 files changed

+0
-64
lines changed

docs/1-trial-session/03-css/_samples/foo/index.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/1-trial-session/03-css/index.mdx

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -142,47 +142,3 @@ HTMLファイルとCSSファイルを分けて作成する場合、`style`属性
142142
2. `.bar button`
143143

144144
</Answer>
145-
146-
## 演習問題3(発展)
147-
148-
画像のようなシンプルなボックスを作ってみましょう。
149-
150-
![シンプルなボックス](./rounded-box-with-shadow.png)
151-
152-
シンプルで、よく見かけるデザインですが、様々な指定が必要であることが分かります。次のような点に注意してデザインしてみてください。
153-
154-
- グレーの枠線が付いています (border)
155-
- 枠線は角丸になっています (border-radius)
156-
- 枠線の外側に余白があります (margin)
157-
- 枠線の内側にも余白があります (padding)
158-
- ボックスに影がついています (box-shadow)
159-
160-
<Answer title="シンプルなボックス">
161-
162-
```html title="index.html"
163-
<!doctype html>
164-
<html lang="ja">
165-
<head>
166-
<meta charset="utf-8" />
167-
<link rel="stylesheet" href="./style.css" />
168-
<title>Title</title>
169-
</head>
170-
<body>
171-
<div id="foo">Foo</div>
172-
</body>
173-
</html>
174-
```
175-
176-
```css title="style.css"
177-
#foo {
178-
border: 1px solid #aaa;
179-
border-radius: 10px;
180-
margin: 30px;
181-
padding: 30px;
182-
box-shadow: 0px 0px 2px 1px #aaa;
183-
}
184-
```
185-
186-
<ViewSource url={import.meta.url} path="_samples/foo" />
187-
188-
</Answer>
-39.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)