404 Page Not Found Template Design with HTML and CSS

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.

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.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript