File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
docs/1-trial-session/12-css Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 22title : ウェブサイトの見た目を整える
33---
44
5+ import Answer from "@site/src /components/Answer";
56import Term from "@site/src /components/Term";
67import 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>
You can’t perform that action at this time.
0 commit comments