-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
79 lines (67 loc) · 1.14 KB
/
home.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
body {
margin: 0;
padding: 0;
background: #f4eed6;
}
header {
background-color: #6a8efb;
color: #000000;
padding: 10px;
}
.container {
display: flex;
justify-content: center; /* 中央に配置 */
align-items: center; /* 中央に配置 */
}
img {
width: 138px;
height: 138px;
margin-right: 20px; /* 画像間の間隔を設定 */
padding: 12px;
}
p {
padding: 10px;
}
button {
background-color: #f53e3e;
color: white;
padding: 6px 12px;
font-size: 16px;
border: none;
cursor: pointer;
}
button:hover {
background-color: #d77b7b;
}
.image-container {
display: grid;
gap: 26px;
grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
margin-top: 6%;
margin-bottom: 50px;
}
.game {
float: left;
max-width: 184px;
width: 100%;
margin: auto;
display: block;
text-align: center;
}
.game_title {
width: 100%;
margin: 0 auto;
text-align: center;
}
.img {
margin: auto;
}
a {
text-align: center;
}
.header__flex {
display: flex;
height: 60px;
align-items: center;
justify-content: space-between; /* h2とbuttonの間にスペースを作り、buttonを右端に配置 */
}