History

Changed the display absolute to flex for both 404 and 500 page

Dhanush Adithya committed 6 years ago

Commit 35e08f91 parent 4eb4bfe2 files · +11 −21Browse files

Unified · Split

2 files
  1. public/404.html +6 −11
  2. public/500.html +5 −10
public/404.html+6−11
@@ -16,19 +16,14 @@ · 15 unmodified lines
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 @@ · 6 unmodified lines
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+5−10
@@ -16,21 +16,16 @@ · 15 unmodified lines
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 @@ · 4 unmodified lines
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 }