Modern Header - MeggiTools
Run
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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <title>Modern Header</title> <style> body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f0f0f0; } .header { background-color: #e0e0e0; color: #333; padding: 20px 0; position: relative; z-index: 1000; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .logo { display: flex; align-items: center; font-size: 24px; font-weight: bold; text-transform: uppercase; } .logo img { margin-right: 10px; width: 40px; height: 40px; } .nav-links { display: flex; gap: 20px; } .nav-links a { color: #333; text-decoration: none; font-size: 18px; position: relative; padding: 10px 20px; border-radius: 25px; box-shadow: 8px 8px 16px #b8b8b8, -8px -8px 16px #ffffff; transition: box-shadow 0.3s ease; } .nav-links a:hover { box-shadow: 8px 8px 16px #a8a8a8, -8px -8px 16px #f0f0f0; } .cta-button { background-color: #ff6f61; color: white; border: none; padding: 10px 20px; border-radius: 25px; cursor: pointer; transition: background-color 0.3s ease; } .cta-button:hover { background-color: #e65a50; } .header-icons { display: flex; gap: 15px; font-size: 20px; } .header-icons a { color: #333; text-decoration: none; transition: color 0.3s ease; display: inline-block; } .header-icons a:hover { color: #ff6f61; } .header-icons a i { animation: spin-icon 1s infinite linear; } @keyframes spin-icon { from { transform: rotate(0); } to { transform: rotate(360deg); } } .emoji-bounce { display: inline-block; animation: bounce 1s infinite alternate; } @keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } } </style> </head> <body> <header class="header"> <div class="header-container"> <div class="logo"> <img src="logo.png" alt="Logo"> <span>My Brand</span> </div> <nav class="nav-links"> <a href="#home">Home</a> <a href="#about">About</a> <a href="#services">Services</a> <a href="#contact">Contact</a> </nav> <button type="button" class="cta-button">Get Started</button> <div class="header-icons"> <a href="#" title="Facebook" class="emoji-bounce"><i class="fab fa-facebook-f"></i></a> <a href="#" title="Twitter" class="emoji-bounce"><i class="fab fa-twitter"></i></a> <a href="#" title="Instagram" class="emoji-bounce"><i class="fab fa-instagram"></i></a> <a href="#" title="LinkedIn" class="emoji-bounce"><i class="fab fa-linkedin-in"></i></a> <a href="#" title="Youtube" class="emoji-bounce"><i class="fab fa-youtube"></i></a> </div> </div> </header> </body> </html>