In this tutorial we will see how to design 404 Page Not Found Custom Template with HTML and CSS. Simple CSS is used for this purpose, HTML code and CSS code is given.
Table of Contents
HTML Code
HTML Code is given below.
<div>
<p class="message">4<span>⚠</span>4 Page Not Found</p>
</div>
CSS Code
CSS Code is given below.
body
{
margin: 0;
padding: 0;
background: linear-gradient(45deg, #A80A0A 10%, #ddd 10%, #ddd 20%, #A80A0A 20%, #A80A0A 30%, #ddd 30%, #ddd 40%, #A80A0A 40%, #A80A0A 50%, #ddd 50%, #ddd 60%, #A80A0A 60%, #A80A0A 70%, #ddd 70%, #ddd 80%, #A80A0A 80%, #A80A0A 90%, #ddd 90%, #ddd 100%);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
font-family: 'Barlow Condensed', sans-serif;
}
.message
{
font-size: 55px;
font-weight: bold;
background-color: #A80A0A;
color: #ddd;
padding: 10px 20px;
border: 2px solid #ddd;
border-radius: 2px;
box-shadow: 0px 0px 4px 2px #000;
}
.message span
{
padding: 0px 2px;
font-weight: 100;
}
Demo
Video Tutorial
Watch our video tutorial on 404 Page Not Found Template Design with HTML and CSS.