Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--example of not found page in html-->
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Not found</title>
- </head>
- <body>
- <style>
- #container{
- margin: auto;
- height: auto;
- width: 25rem;
- background-color: #ffffff;
- border-radius: .5rem;
- text-align: center;
- padding: 10px;
- transform: translateY(20rem)
- }
- body{
- background-color: #383838;
- font-family: sans-serif;
- }
- hr{
- width: 20rem;
- }
- </style>
- <div id="container">
- <h1>Page not found</h1>
- <hr>
- <h2>Insert information here</h2>
- </div>
- <script>
- /*Div centerer*/
- document.getElementById('container').style.transform = document.getElementById('container').innerHTML.length/2.95 + "rem"
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment