Last active
February 21, 2019 22:23
-
-
Save brucebentley/b6d0524d954fd663f30a9624f1fcdc70 to your computer and use it in GitHub Desktop.
Responsive 404 Background Image — https://codepen.io/brucebentley/full/MLddxx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *, | |
| *: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