Elegant 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>Elegant 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: 'Georgia', serif; background: linear-gradient(135deg, #ff9a9e, #fad0c4); display: flex; justify-content: center; align-items: center; height: 100vh; } .elegant-section { background: #ffffff; border-radius: 50px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); padding: 40px; text-align: center; width: 80%; max-width: 900px; animation: fadeIn 1s ease-out; } .elegant-section h1 { font-size: 3em; margin-bottom: 20px; color: #333; font-weight: bold; } .elegant-section p { font-size: 1.3em; color: #666; margin-bottom: 30px; } .elegant-section button { background: #ff9a9e; color: #fff; border: none; padding: 15px 30px; font-size: 1em; border-radius: 25px; cursor: pointer; transition: background 0.3s ease; } .elegant-section button:hover { background: #fad0c4; color: #ff9a9e; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } } </style> </head> <body> <div class="elegant-section"> <h1>Elegant Design</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum in interdum leo. Proin nec massa nec erat hendrerit commodo.</p> <button>Discover More <i class="fas fa-arrow-right"></i></button> </div> <script> document.querySelector('button').addEventListener('click', function() { alert('Discover more about the Elegant Design!'); }); </script> </body> </html>