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 is given below.

<p class="message">4<span>⚠</span>4 Page Not Found</p>

CSS Code

CSS Code is given below.

    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;
    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;


Video Tutorial

Watch our video tutorial on 404 Page Not Found Template Design with HTML and 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 Profile Card With Hover Effect using HTML and CSS Simple Price Range Slider With HTML CSS and JavaScript Circle With Two Colors using CSS Card With Ribbon using HTML and CSS Simple Loading Screen using HTML and CSS Disable Textarea Resizable Property using CSS Button like Links using CSS Simple Dropdown Menu Using HTML and CSS Background Color Transition using CSS Highlight Required Input Fields using CSS Disable HTML Link using CSS Difference Between Descendant Selector and Child Selector How To Change Color and Size of Hr Tag Using CSS How To Center Align HTML Table Convert Checkbox To Toggle Button Using CSS Drawing Stars using HTML and CSS Button Bounce Effect using CSS Image as Text Background using CSS background-clip Property Vertically Rotate HTML Element using CSS Vertical Align Middle using CSS Text Over Image Hover Effect - Css Hover Simple CSS Button Hover Effect using Before Selector