forked from smt96700/Computer_Coding_Club_Github_Class
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
57 lines (50 loc) · 1.04 KB
/
style.css
File metadata and controls
57 lines (50 loc) · 1.04 KB
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
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
}
h1 {
color: #333;
text-align: center;
}
/* Style for the list */
ul {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px; /* Set a maximum height for the list */
overflow-y: auto; /* Enable scrolling when the list exceeds the height */
border: 1px solid #ddd;
border-radius: 4px;
}
ul li {
padding: 10px;
background-color: #f0f0f0;
margin-bottom: 5px;
border-radius: 4px;
transition: background-color 0.3s ease;
}
ul li:hover {
background-color: #ddd;
}
/* Add a scrollbar style (optional) */
ul::-webkit-scrollbar {
width: 8px;
}
ul::-webkit-scrollbar-thumb {
background-color: #bbb;
border-radius: 4px;
}