I have a list of servers in a scroll container name servers
and the top of the list is hidden under the navbar
:
HTML:
JavaScript
x
2
1
<div class="servers"></div>
2
CSS:
JavaScript
1
17
17
1
.servers{
2
display: flex;
3
flex-direction: column;
4
justify-content: center;
5
align-items: center;
6
height: 80%;
7
width: 100%;
8
float: bottom;
9
background-color: #282C34;
10
position: absolute;
11
bottom: 0;
12
border-top: 2px solid #1E2228;
13
box-shadow: 3px 3px 2px #1E2228;
14
overflow-y: scroll;
15
overflow-x: hidden;
16
}
17
This list starts empty. divs
are added to this list of servers when you use the site. When too many divs
are added, scrolling starts. But the problem is that the top objects are hidden under the scroll and you can no longer see them when the scroll bar is at the top.
Here is CSS of the divs
to be added:
JavaScript
1
18
18
1
.server{
2
width: 70%;
3
height: 50px;
4
display: flex;
5
flex-direction: row;
6
justify-content: space-between;
7
background-color: #4f4e4e;
8
align-items: center;
9
border-bottom: 2px solid #1E2228;
10
box-shadow: 3px 3px 2px #1E2228;
11
padding: 10px;
12
transition: ease-in 0.2s;
13
border-radius: 10px;
14
/**/
15
margin-top: 10px;
16
17
}
18
In the example below, I have manually inserted objects:
JavaScript
1
307
307
1
html,
2
body{
3
padding: 0;
4
margin: 0;
5
font-family: Helvetica, Arial, sans-serif;
6
/*darker then 707AF7*/
7
background-color: #282C34;
8
height: 100%;
9
width: 100%;
10
}
11
12
.head{
13
background-color: #3E3E3E;
14
height: 60px;
15
width: 100%;
16
float: bottom;
17
border-bottom: 2px solid #1E2228;
18
box-shadow: 3px 3px 2px #1E2228;
19
}
20
textarea{
21
width: 100%;
22
height: 100%;
23
background-color: transparent;
24
color: #fff;
25
border: none;
26
outline: none;
27
resize: none;
28
}
29
.navbar{
30
/*grid*/
31
display: grid;
32
grid-template-columns: 1fr 1fr 1fr 1fr;
33
grid-template-rows: 1fr;
34
grid-template-areas: "home home home home";
35
grid-gap: 10px;
36
height: 60px;
37
width: 100%;
38
float: top;
39
background-color: #3E3E3E;
40
border-bottom: 2px solid #1E2228;
41
box-shadow: 3px 3px 2px #1E2228;
42
padding: 10px;
43
}
44
.navbarBtn{
45
background-color: transparent;
46
outline: none;
47
cursor: pointer;
48
color: #fff;
49
font-size: 20px;
50
font-weight: bold;
51
border: 0 solid gray;
52
border-radius: 10px;
53
padding: 0;
54
margin: 0;
55
transition: ease-in 0.2s;
56
}
57
.navbarBtn:hover{
58
/*move text up*/
59
transform: translateY(-5px);
60
}
61
.navbarBtne{
62
background-color: transparent;
63
outline: none;
64
cursor: pointer;
65
color: #ff0000;
66
font-size: 25px;
67
font-weight: bold;
68
border: 0 solid gray;
69
border-radius: 10px;
70
padding: 0;
71
margin: 0;
72
transition: ease-in 0.2s;
73
74
/*deactivate click */
75
pointer-events: none;
76
}
77
78
.servers{
79
/*servers is a list were each record is displayed under eachother. The value of the list are divs that are width: 100%*/
80
display: flex;
81
flex-direction: column;
82
justify-content: center;
83
align-items: center;
84
/*height 100% - 60px*/
85
height: 80%;
86
width: 100%;
87
float: bottom;
88
background-color: #282C34;
89
position: absolute;
90
bottom: 0;
91
border-top: 2px solid #1E2228;
92
box-shadow: 3px 3px 2px #1E2228;
93
overflow-y: scroll;
94
overflow-x: hidden;
95
}
96
/*
97
Box boder: +
98
99
+++++++++++++++++++++++++
100
{serverImage}{4 spaces}{ServerName}{4 spaces}{Players}{6 spaces}{ManageButton}{2 spaces}{connectButton}
101
*/
102
.server{
103
width: 70%;
104
height: 50px;
105
display: flex;
106
flex-direction: row;
107
justify-content: space-between;
108
background-color: #4f4e4e;
109
align-items: center;
110
border-bottom: 2px solid #1E2228;
111
box-shadow: 3px 3px 2px #1E2228;
112
padding: 10px;
113
transition: ease-in 0.2s;
114
border-radius: 10px;
115
/**/
116
margin-top: 10px;
117
118
}
119
.serverIcon{
120
width: 50px;
121
height: 50px;
122
background-color: #282C34;
123
margin: 0;
124
padding: 0;
125
transition: ease-in 0.2s;
126
border-radius: 100%;
127
}
128
.serverName{
129
font-size: 20px;
130
font-weight: bold;
131
color: #ffffff;
132
margin: 0;
133
padding: 0;
134
transition: ease-in 0.2s;
135
/*move 10px up*/
136
transform: translateX(-20px);
137
fit: cover;
138
white-space: nowrap;
139
}
140
.players{
141
font-size: 15px;
142
color: #ffffff;
143
margin: 0;
144
padding: 0;
145
transition: ease-in 0.2s;
146
/*move 10px up*/
147
transform: translateX(-10px);
148
}
149
.status{
150
font-size: 15px;
151
color: #ffffff;
152
margin: 0;
153
padding: 0;
154
transition: ease-in 0.2s;
155
/*move 10px up*/
156
transform: translateX(10px);
157
}
158
.statusValue{
159
font-size: 15px;
160
color: lightgreen;
161
margin: 0;
162
padding: 0;
163
transition: ease-in 0.2s;
164
/*move 10px up*/
165
transform: translateX(-20px);
166
167
}
168
.sync{
169
font-size: 15px;
170
color: #282C34;
171
margin: 0;
172
width: 32px;
173
height: 32px;
174
padding: 0;
175
transition: ease-in 0.2s;
176
/*move 10px up*/
177
transform: translateX(-20px);
178
background: transparent;
179
border: none;
180
}
181
svg{
182
pointer-events: all;
183
cursor: pointer;
184
fill: #ffffff;
185
}
186
.manage{
187
font-size: 15px;
188
margin: 0;
189
padding: 0;
190
transition: ease-in 0.2s;
191
/*move 10px up*/
192
transform: translateX(10px);
193
width: 120px;
194
height: 40px;
195
background-color: #282C34;
196
border: none;
197
border-radius: 10px;
198
color: #fff;
199
font-weight: bold;
200
outline: none;
201
cursor: pointer;
202
box-shadow: 3px 3px 2px #1E2228;
203
}
204
.manage:hover{
205
transform: translateX(10px) scale(1.1);
206
box-shadow: 0 0 0 #1E2228;
207
}
208
.connect{
209
font-size: 15px;
210
margin: 0;
211
padding: 0;
212
transition: ease-in 0.2s;
213
/*move 10px up*/
214
transform: translateX(-20px);
215
width: 120px;
216
height: 40px;
217
/*make button beautiful*/
218
background-color: #282C34;
219
border: none;
220
border-radius: 10px;
221
color: #fff;
222
font-weight: bold;
223
outline: none;
224
cursor: pointer;
225
box-shadow: 3px 3px 2px #1E2228;
226
}
227
.connect:hover{
228
transform: translateX(-20px) scale(1.1);
229
box-shadow: 0 0 0 #1E2228;
230
}
231
232
.search{
233
display: flex;
234
flex-direction: row;
235
justify-content: center;
236
align-items: center;
237
height: 50px;
238
width: 100%;
239
padding: 10px;
240
transition: ease-in 0.2s;
241
border-radius: 10px;
242
margin-top: 10px;
243
}
244
#search{
245
width: 90%;
246
height: 100%;
247
background-color: #3E3E3E;
248
border: none;
249
border-radius: 10px;
250
color: #fff;
251
font-weight: bold;
252
outline: none;
253
cursor: pointer;
254
box-shadow: 3px 3px 2px #1E2228;
255
transform: translateY(10px);
256
margin-left: -45px;
257
text-align: center;
258
font-size: 20px;
259
}
260
261
262
263
@media screen and (max-width: 600px) {
264
.navbarBtne{
265
font-size: 20px;
266
}
267
.servers{
268
width: 100%;
269
}
270
.server{
271
width: 100%;
272
}
273
.serverIcon{
274
width: 40px;
275
height: 40px;
276
}
277
.serverName{
278
font-size: 15px;
279
}
280
.players{
281
font-size: 12px;
282
}
283
.status{
284
font-size: 12px;
285
}
286
.statusValue{
287
font-size: 12px;
288
}
289
.sync{
290
font-size: 12px;
291
}
292
.manage{
293
font-size: 12px;
294
width: 100px;
295
}
296
.connect{
297
font-size: 12px;
298
width: 100px;
299
}
300
.search{
301
height: 40px;
302
}
303
#search{
304
font-size: 15px;
305
width: 100%;
306
}
307
}
JavaScript
1
53
53
1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
<title>Island</title>
8
<link rel="stylesheet" href="/styles.css">
9
</head>
10
11
<body>
12
<div class="head">
13
<div class="navbar">
14
<button class="navbarBtn">Server</button>
15
<button class="navbarBtn">Version</button>
16
<button class="navbarBtn">Settings</button>
17
<button class="navbarBtne" id="version"></button>
18
</div>
19
</div>
20
<div class="search">
21
<input type="text" placeholder="Search" id="search" onkeyup="search()">
22
</div>
23
<div class="servers">
24
<div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 0</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: green;">Online</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
25
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
26
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
27
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
28
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 2</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
29
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
30
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 3</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
31
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
32
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 4</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
33
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
34
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 5</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
35
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
36
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 6</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
37
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
38
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 7</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
39
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
40
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 8</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
41
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
42
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 9</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
43
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
44
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 10</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
45
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
46
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 11</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
47
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
48
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"></div>
49
</div>
50
51
</body>
52
<script src="index.js"></script>
53
</html>
Advertisement
Answer
A similar problem can be solved by using pseudo-elements on the container (for center alignment in the direction instead of justify-content: center
) with the flex: 1 1 0
property. Example below:
JavaScript
1
314
314
1
html,
2
body{
3
padding: 0;
4
margin: 0;
5
font-family: Helvetica, Arial, sans-serif;
6
/*darker then 707AF7*/
7
background-color: #282C34;
8
height: 100%;
9
width: 100%;
10
}
11
12
.head{
13
background-color: #3E3E3E;
14
height: 60px;
15
width: 100%;
16
float: bottom;
17
border-bottom: 2px solid #1E2228;
18
box-shadow: 3px 3px 2px #1E2228;
19
}
20
textarea{
21
width: 100%;
22
height: 100%;
23
background-color: transparent;
24
color: #fff;
25
border: none;
26
outline: none;
27
resize: none;
28
}
29
.navbar{
30
/*grid*/
31
display: grid;
32
grid-template-columns: 1fr 1fr 1fr 1fr;
33
grid-template-rows: 1fr;
34
grid-template-areas: "home home home home";
35
grid-gap: 10px;
36
height: 60px;
37
width: 100%;
38
float: top;
39
background-color: #3E3E3E;
40
border-bottom: 2px solid #1E2228;
41
box-shadow: 3px 3px 2px #1E2228;
42
padding: 10px;
43
}
44
.navbarBtn{
45
background-color: transparent;
46
outline: none;
47
cursor: pointer;
48
color: #fff;
49
font-size: 20px;
50
font-weight: bold;
51
border: 0 solid gray;
52
border-radius: 10px;
53
padding: 0;
54
margin: 0;
55
transition: ease-in 0.2s;
56
}
57
.navbarBtn:hover{
58
/*move text up*/
59
transform: translateY(-5px);
60
}
61
.navbarBtne{
62
background-color: transparent;
63
outline: none;
64
cursor: pointer;
65
color: #ff0000;
66
font-size: 25px;
67
font-weight: bold;
68
border: 0 solid gray;
69
border-radius: 10px;
70
padding: 0;
71
margin: 0;
72
transition: ease-in 0.2s;
73
74
/*deactivate click */
75
pointer-events: none;
76
}
77
78
.servers{
79
/*servers is a list were each record is displayed under eachother. The value of the list are divs that are width: 100%*/
80
display: flex;
81
flex-direction: column;
82
/* justify-content: center; -- use pseudo-element on nested elements instead !!! */
83
align-items: center;
84
/*height 100% - 60px*/
85
height: 80%;
86
width: 100%;
87
float: bottom;
88
background-color: #282C34;
89
position: absolute;
90
bottom: 0;
91
border-top: 2px solid #1E2228;
92
box-shadow: 3px 3px 2px #1E2228;
93
overflow-y: scroll;
94
overflow-x: hidden;
95
}
96
97
/* pseudo elements are used for correct alignment in the center */
98
.servers:after,.servers:before {
99
content: '';
100
flex: 1 1 0;
101
}
102
103
/*
104
Box boder: +
105
106
+++++++++++++++++++++++++
107
{serverImage}{4 spaces}{ServerName}{4 spaces}{Players}{6 spaces}{ManageButton}{2 spaces}{connectButton}
108
*/
109
.server{
110
width: 70%;
111
height: 50px;
112
display: flex;
113
flex-direction: row;
114
justify-content: space-between;
115
background-color: #4f4e4e;
116
align-items: center;
117
border-bottom: 2px solid #1E2228;
118
box-shadow: 3px 3px 2px #1E2228;
119
padding: 10px;
120
transition: ease-in 0.2s;
121
border-radius: 10px;
122
/**/
123
margin-top: 10px;
124
125
}
126
.serverIcon{
127
width: 50px;
128
height: 50px;
129
background-color: #282C34;
130
margin: 0;
131
padding: 0;
132
transition: ease-in 0.2s;
133
border-radius: 100%;
134
}
135
.serverName{
136
font-size: 20px;
137
font-weight: bold;
138
color: #ffffff;
139
margin: 0;
140
padding: 0;
141
transition: ease-in 0.2s;
142
/*move 10px up*/
143
transform: translateX(-20px);
144
fit: cover;
145
white-space: nowrap;
146
}
147
.players{
148
font-size: 15px;
149
color: #ffffff;
150
margin: 0;
151
padding: 0;
152
transition: ease-in 0.2s;
153
/*move 10px up*/
154
transform: translateX(-10px);
155
}
156
.status{
157
font-size: 15px;
158
color: #ffffff;
159
margin: 0;
160
padding: 0;
161
transition: ease-in 0.2s;
162
/*move 10px up*/
163
transform: translateX(10px);
164
}
165
.statusValue{
166
font-size: 15px;
167
color: lightgreen;
168
margin: 0;
169
padding: 0;
170
transition: ease-in 0.2s;
171
/*move 10px up*/
172
transform: translateX(-20px);
173
174
}
175
.sync{
176
font-size: 15px;
177
color: #282C34;
178
margin: 0;
179
width: 32px;
180
height: 32px;
181
padding: 0;
182
transition: ease-in 0.2s;
183
/*move 10px up*/
184
transform: translateX(-20px);
185
background: transparent;
186
border: none;
187
}
188
svg{
189
pointer-events: all;
190
cursor: pointer;
191
fill: #ffffff;
192
}
193
.manage{
194
font-size: 15px;
195
margin: 0;
196
padding: 0;
197
transition: ease-in 0.2s;
198
/*move 10px up*/
199
transform: translateX(10px);
200
width: 120px;
201
height: 40px;
202
background-color: #282C34;
203
border: none;
204
border-radius: 10px;
205
color: #fff;
206
font-weight: bold;
207
outline: none;
208
cursor: pointer;
209
box-shadow: 3px 3px 2px #1E2228;
210
}
211
.manage:hover{
212
transform: translateX(10px) scale(1.1);
213
box-shadow: 0 0 0 #1E2228;
214
}
215
.connect{
216
font-size: 15px;
217
margin: 0;
218
padding: 0;
219
transition: ease-in 0.2s;
220
/*move 10px up*/
221
transform: translateX(-20px);
222
width: 120px;
223
height: 40px;
224
/*make button beautiful*/
225
background-color: #282C34;
226
border: none;
227
border-radius: 10px;
228
color: #fff;
229
font-weight: bold;
230
outline: none;
231
cursor: pointer;
232
box-shadow: 3px 3px 2px #1E2228;
233
}
234
.connect:hover{
235
transform: translateX(-20px) scale(1.1);
236
box-shadow: 0 0 0 #1E2228;
237
}
238
239
.search{
240
display: flex;
241
flex-direction: row;
242
justify-content: center;
243
align-items: center;
244
height: 50px;
245
width: 100%;
246
padding: 10px;
247
transition: ease-in 0.2s;
248
border-radius: 10px;
249
margin-top: 10px;
250
}
251
#search{
252
width: 90%;
253
height: 100%;
254
background-color: #3E3E3E;
255
border: none;
256
border-radius: 10px;
257
color: #fff;
258
font-weight: bold;
259
outline: none;
260
cursor: pointer;
261
box-shadow: 3px 3px 2px #1E2228;
262
transform: translateY(10px);
263
margin-left: -45px;
264
text-align: center;
265
font-size: 20px;
266
}
267
268
269
270
@media screen and (max-width: 600px) {
271
.navbarBtne{
272
font-size: 20px;
273
}
274
.servers{
275
width: 100%;
276
}
277
.server{
278
width: 100%;
279
}
280
.serverIcon{
281
width: 40px;
282
height: 40px;
283
}
284
.serverName{
285
font-size: 15px;
286
}
287
.players{
288
font-size: 12px;
289
}
290
.status{
291
font-size: 12px;
292
}
293
.statusValue{
294
font-size: 12px;
295
}
296
.sync{
297
font-size: 12px;
298
}
299
.manage{
300
font-size: 12px;
301
width: 100px;
302
}
303
.connect{
304
font-size: 12px;
305
width: 100px;
306
}
307
.search{
308
height: 40px;
309
}
310
#search{
311
font-size: 15px;
312
width: 100%;
313
}
314
}
JavaScript
1
53
53
1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
<title>Island</title>
8
<link rel="stylesheet" href="/styles.css">
9
</head>
10
11
<body>
12
<div class="head">
13
<div class="navbar">
14
<button class="navbarBtn">Server</button>
15
<button class="navbarBtn">Version</button>
16
<button class="navbarBtn">Settings</button>
17
<button class="navbarBtne" id="version"></button>
18
</div>
19
</div>
20
<div class="search">
21
<input type="text" placeholder="Search" id="search" onkeyup="search()">
22
</div>
23
<div class="servers">
24
<div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 0</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: green;">Online</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
25
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
26
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
27
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
28
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
29
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
30
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
31
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
32
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
33
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
34
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
35
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
36
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
37
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
38
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
39
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
40
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
41
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
42
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
43
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
44
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
45
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
46
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"><img class="serverIcon" src="https://img.gommehd.net/512x512/logo.png"><a class="serverName">Server 1</a><a class="players">Players: 25000/100000</a><a class="status">Status: <a class="statusValue" style="color: red;">Offline</a></a><button class="sync"><svg class="icon"><svg width="32px" height="32px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" class="icon">
47
<path d="M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"></path>
48
</svg></svg></button><button class="manage">Manage</button><button class="connect">Connect</button></div><div class="server" style="display: flex;"></div>
49
</div>
50
51
</body>
52
<script src="index.js"></script>
53
</html>