Professional Styled Grid - 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"> <title>Professional Styled Grid</title> <style> body { font-family: 'Arial', sans-serif; background-color: #f0f0f0; margin: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; background: #ffffff; border-radius: 15px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transform: scale(0.95); animation: fadeIn 1s ease-in-out forwards; } .grid-item { background: linear-gradient(135deg, #ff4081, #ff80ab); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; font-size: 1.2em; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .grid-item:hover { transform: translateY(-10px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); } .grid-item i { font-size: 2em; margin-bottom: 10px; animation: bounce 1.5s infinite; } .grid-item:nth-child(odd) i { animation-delay: 0.5s; } .grid-item:nth-child(even) i { animation-delay: 1s; } @keyframes fadeIn { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } } </style> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> </head> <body> <div class="grid-container"> <div class="grid-item"> <i class="fas fa-heart"></i> ❤️ Love </div> <div class="grid-item"> <i class="fas fa-star"></i> ⭐ Star </div> <div class="grid-item"> <i class="fas fa-music"></i> 🎵 Music </div> <div class="grid-item"> <i class="fas fa-coffee"></i> ☕ Coffee </div> <div class="grid-item"> <i class="fas fa-laptop"></i> 💻 Tech </div> <div class="grid-item"> <i class="fas fa-leaf"></i> 🍃 Nature </div> </div> </body> </html>