Skip to content

Commit a95e434

Browse files
committed
Fixed default page layout
1 parent 285d2f5 commit a95e434

File tree

2 files changed

+261
-193
lines changed

2 files changed

+261
-193
lines changed

default.html

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,64 @@
11
<html>
2+
3+
<head>
4+
<style>
5+
.outer {
6+
display: table;
7+
position: absolute;
8+
height: 90%;
9+
width: 98%;
10+
}
11+
12+
.middle {
13+
display: table-cell;
14+
vertical-align: middle;
15+
}
16+
17+
.inner {
18+
margin-left: auto;
19+
margin-right: auto;
20+
text-align: center;
21+
width: 100%;
22+
}
23+
24+
::-webkit-scrollbar {
25+
width: 8px;
26+
height: 8px;
27+
background-color: whitesmoke;
28+
}
29+
30+
::-webkit-scrollbar-thumb {
31+
border-radius: 0px;
32+
height: 8px;
33+
width: 8px;
34+
background-color: #666;
35+
}
36+
37+
::-webkit-scrollbar-thumb:hover {
38+
background-color: #999;
39+
height: 8px;
40+
width: 8px;
41+
}
42+
43+
::-webkit-scrollbar-thumb:active {
44+
background-color: #999;
45+
width: 8px;
46+
height: 8px;
47+
}
48+
</style>
49+
</head>
50+
251
<body>
352
<title>Electron PDF Viewer</title>
4-
<center style="margin: 150px 0 0 0;">
5-
<h2>Electron PDF Viewer</h2>
6-
<img src='icon.ico' width='100' height='100'>
7-
</center>
53+
<div class="outer">
54+
<div class="middle">
55+
<div class="inner">
56+
<h2>Electron PDF Viewer</h2>
57+
<img src='icon.ico' width='100' height='100'>
58+
</div>
59+
</div>
60+
</div>
61+
862
</body>
63+
964
</html>

0 commit comments

Comments
 (0)