Stylish Error Message - VexaX
Run Code
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Stylish Error Message</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f06, #4a90e2); overflow: hidden; } .error-container { background: white; padding: 30px 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); text-align: center; animation: fadeIn 1s ease-out; } .error-container h1 { font-size: 4em; margin: 0; color: #ff4d4d; } .error-container p { font-size: 1.2em; color: #333; margin: 10px 0; } .error-icon { font-size: 3em; color: #ff4d4d; margin-bottom: 10px; animation: shake 0.5s ease-in-out infinite; } .error-emoji { font-size: 2em; margin-bottom: 20px; animation: bounce 1s infinite; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } .retry-button { background: #4a90e2; color: white; border: none; padding: 10px 20px; font-size: 1em; border-radius: 5px; cursor: pointer; transition: background 0.3s; } .retry-button:hover { background: #357ab8; } </style> </head> <body> <div class="error-container"> <div class="error-icon">❗</div> <div class="error-emoji">😞</div> <h1>Error 404</h1> <p>Oops! The page you are looking for does not exist.</p> <button class="retry-button" onclick="retry()">Retry</button> </div> <script> function retry() { location.reload(); } </script> </body> </html>