-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
46 lines (43 loc) · 1.32 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
h2 {
color: brown;
font-size: 1.5rem;
}
body {
font-family: Arial, Helvetica, sans-serif;
}
table {
border-collapse: collapse;
}
td, th {
border: 1px solid #dddddd;
}
table {
width: 100%; /* 幅をページいっぱいに広げる */
border-collapse: collapse; /* 隣り合う枠線を結合する */
text-align: left; /* テキストを左寄せにする */
}
th, td {
padding: 0.5rem; /* 内側の余白を0.5rem取る */
border: 1px solid #ddd; /* 太さ1px, スタイルsolid, 色#dddの枠線をつける */
}
th {
background-color: #e1adad; /* 要素の背景色を#e1adadにする */
}
body {
width: 80%; /* 幅をページの80%にする */
min-width: 300px; /* 最小の幅を300pxにする */
max-width: 800px; /* 最大の幅を800pxにする */
margin: 0 auto; /* 上下のマージンを0, 左右のマージンをautoにする */
}
img {
height: 2rem;
}
header {
display: flex; /* 子要素を縦並びから横並びに変更 */
justify-content: space-between; /* 間隔を最大まで広げる */
border-bottom: 1px solid #ddd; /* 太さ1px, スタイルsolid, 色#dddの枠線を下だけつける */
}
header div {
display: flex; /* ネスト対応 */
align-items: center; /* 垂直方向を中央揃え */
}