Modern Section - 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>Modern Section</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <style> body { margin: 0; padding: 0; font-family: 'Helvetica', sans-serif; background: linear-gradient(135deg, #ffecd2, #fcb69f); display: flex; justify-content: center; align-items: center; height: 100vh; } .modern-section { background: #ffffff; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); padding: 50px; text-align: left; width: 75%; max-width: 800px; animation: zoomIn 1s ease-out; } .modern-section h1 { font-size: 2.5em; margin-bottom: 15px; color: #444; font-weight: 700; } .modern-section p { font-size: 1.2em; color: #555; margin-bottom: 25px; } .modern-section button { background: #ffecd2; color: #ff6f61; border: 2px solid #ff6f61; padding: 12px 24px; font-size: 1em; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; } .modern-section button:hover { background: #ff6f61; color: #ffecd2; } @keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } } </style> </head> <body> <div class="modern-section"> <h1>Modern Design</h1> <p>Curabitur vitae orci id tortor tincidunt fermentum. Sed suscipit eros non nulla faucibus efficitur.</p> <button>Explore <i class="fas fa-arrow-right"></i></button> </div> <script> document.querySelector('button').addEventListener('click', function() { alert('Explore the Modern Design!'); }); </script> </body> </html>