Skip to content

Commit 35e08f9

Browse files
Changed the display absolute to flex for both 404 and 500 page
1 parent 4eb4bfe commit 35e08f9

2 files changed

Lines changed: 11 additions & 21 deletions

File tree

‎public/404.html‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,14 @@
1616

1717
body {
1818
margin: 0;
19+
height: 100vh;
20+
display: flex;
21+
align-items: center;
22+
justify-content: center;
23+
background: white;
1924
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
2025
color: #555;
2126
text-align: center;
22-
background: white;
23-
}
24-
25-
div {
26-
position: absolute;
27-
top: 50%;
28-
left: 0;
29-
right: 0;
30-
margin-top: -5em;
31-
padding: 0 1em;
3227
}
3328

3429
h1 {
@@ -41,7 +36,7 @@
4136
}
4237

4338
p {
44-
margin: 1.5em 0 0;
39+
margin: 1.5em 0;
4540
line-height: 1.8;
4641
font-weight: 300;
4742
}

‎public/500.html‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,16 @@
1616

1717
body {
1818
margin: 0;
19+
height: 100vh;
20+
display: flex;
21+
align-items: center;
22+
justify-content: center;
1923
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
2024
color: #555;
2125
text-align: center;
2226
background: white;
2327
}
2428

25-
div {
26-
position: absolute;
27-
top: 50%;
28-
left: 0;
29-
right: 0;
30-
margin-top: -6em;
31-
padding: 0 1em;
32-
}
33-
3429
h1 {
3530
margin: 0;
3631
line-height: 1;
@@ -41,7 +36,7 @@
4136
}
4237

4338
p {
44-
margin: 1.5em 0 0;
39+
margin: 1.5em 0;
4540
line-height: 1.8;
4641
font-weight: 300;
4742
}

0 commit comments

Comments
 (0)