Tailwind CSS 404 Page Examples

In this section we will see simple tailwind css 404 simple template, tailwind 404 page, tailwind page not found design, tailwind 404 page with image example with Tailwind CSS.


Example 1

Tailwind CSS simple responsive 404 template.

<!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>Tailwind CSS 404 Page</title>
        <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" />
    </head>
    <body>
        <div class="flex items-center justify-center w-screen h-screen bg-indigo-600">
            <p class="text-5xl text-white md:text-7xl lg:text-9xl">404</p>
        </div>
    </body>
</html>  


Example 2

Tailwind CSS 404 Error Page with shadow card and gradient background.

<div
  class="
    flex
    items-center
    justify-center
    w-screen
    h-screen
    bg-gradient-to-r
    from-indigo-600
    to-blue-400
  "
>
  <div class="px-40 py-20 bg-white rounded-md shadow-xl">
    <div class="flex flex-col items-center">
      <h1 class="font-bold text-blue-600 text-9xl">404</h1>

      <h6 class="mb-2 text-2xl font-bold text-center text-gray-800 md:text-3xl">
        <span class="text-red-500">Oops!</span> Page not found
      </h6>

      <p class="mb-8 text-center text-gray-500 md:text-lg">
        The page you’re looking for doesn’t exist.
      </p>

      <a
        href="#"
        class="px-6 py-2 text-sm font-semibold text-blue-800 bg-blue-100"
        >Go home</a
      >
    </div>
  </div>
</div>


Example 3

Tailwind CSS 404 page with image.

<div class="flex items-center justify-center w-screen h-screen">
  <div class="px-4 lg:py-12">
    <div class="lg:gap-4 lg:flex">
      <div
        class="flex flex-col items-center justify-center md:py-24 lg:py-32"
      >
        <h1 class="font-bold text-blue-600 text-9xl">404</h1>
        <p
          class="mb-2 text-2xl font-bold text-center text-gray-800 md:text-3xl"
        >
          <span class="text-red-500">Oops!</span> Page not found
        </p>
        <p class="mb-8 text-center text-gray-500 md:text-lg">
          The page you’re looking for doesn’t exist.
        </p>
        <a
          href="#"
          class="px-6 py-2 text-sm font-semibold text-blue-800 bg-blue-100"
          >Go home</a
        >
      </div>
      <div class="mt-4">
        <img
          src="https://cdn.pixabay.com/photo/2016/11/22/23/13/black-dog-1851106__340.jpg"
          alt="img"
          class="object-cover w-full h-full"
        />
      </div>
    </div>
  </div>
</div>