Skip to content

Commit 7e63898

Browse files
committed
CSS (+import Answer)
1 parent 48b7b3b commit 7e63898

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/1-trial-session/12-css/index.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: ウェブサイトの見た目を整える
33
---
44

5+
import Answer from "@site/src/components/Answer";
56
import Term from "@site/src/components/Term";
67
import ViewSource from "@site/src/components/ViewSource";
78

@@ -73,4 +74,31 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
7374
- 枠線の内側にも余白があります (padding)
7475
- ボックスに影がついています (box-shadow)
7576

77+
<Answer type="シンプルなボックス">
78+
79+
```html
80+
<!doctype html>
81+
<html lang="ja">
82+
<head>
83+
<meta charset="utf-8" />
84+
<title>Title</title>
85+
</head>
86+
<body>
87+
<div
88+
style="
89+
border: 1px solid #aaa;
90+
border-radius: 10px;
91+
margin: 30px;
92+
padding: 30px;
93+
box-shadow: 0px 0px 2px 1px #aaa;
94+
"
95+
>
96+
Foo
97+
</div>
98+
</body>
99+
</html>
100+
```
101+
76102
<ViewSource url={import.meta.url} path="_samples/foo" />
103+
104+
</Answer>

0 commit comments

Comments
 (0)