Skip to content

Instantly share code, notes, and snippets.

@brucebentley
Last active February 21, 2019 22:17
Show Gist options
  • Save brucebentley/da655200a4374a9e72733a99902b3c4b to your computer and use it in GitHub Desktop.
Save brucebentley/da655200a4374a9e72733a99902b3c4b to your computer and use it in GitHub Desktop.
Responsive 404 Background Image —https://codepen.io/brucebentley/full/MLddxx
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Static 404 Landing Page</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!-- ADD YOUR CONTENT HERE -->
</body>
*,
*:before,
*:after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-text-size-adjust: 100%;
}
html {
height: 100%;
}
body {
background-attachment: fixed;
background-color: rgba(0, 0, 0, 0.6);
background-image: url('https://roosterillusionreviews.files.wordpress.com/2014/08/piccit_the_forbidden_planet_poster_1296502960.jpg');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
color: rgba(0, 0, 0, 1);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
min-height: 100%;
line-height: 1.5;
margin: 0;
padding: 0;
text-align: left;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment