style.css
.page404 {
background-color: #fff;
height: 100vh;
width: 100%;
}
.container {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
flex-wrap: wrap;
width: 90%;
}
.img {
background-image: url(“https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif”);
height: 500px;
background-repeat: no-repeat;
margin: auto;
width: 800px;
transition: all 4s;
}
.img:hover {
transform: rotate(20deg);
}
button {
background-color: green;
color: #fff;
padding: 10px;
border-radius: 5px;
}
h1 {
font-size: 60px;
font-family: cursive;
}
h3 {
font-family: cursive;
padding: 20px;
}
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>404 page</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section class="page404">
<div class="container">
<h1 style="position: absolute; top: 50px; left: 47%">404</h1>
<div class="text-center">
<div class="img"></div>
<h3>
Look like you're lost the page <br />you are looking for not
avaible!
</h3>
<button>Go to Home</button>
</div>
</div>
</section>
</body>
</html>