Creative Media Block - 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>Creative Media Block</title> <style> body { font-family: 'Montserrat', Arial, sans-serif; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .media-block { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); overflow: hidden; width: 350px; transition: transform 0.3s ease, box-shadow 0.3s ease; } .media-block:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); } .media-block img { width: 100%; height: auto; display: block; } .media-block .content { padding: 20px; text-align: center; } .media-block h2 { margin: 0 0 10px; font-size: 22px; color: #333; } .media-block p { margin: 0; color: #666; font-size: 16px; line-height: 1.5; } .media-block .actions { margin-top: 15px; display: flex; justify-content: center; } .media-block .actions button { background-color: #ff9800; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } .media-block .actions button:hover { background-color: #f57c00; } </style> </head> <body> <div class="media-block"> <img src="https://via.placeholder.com/350" alt="Media Image"> <div class="content"> <h2>Creative Media Block</h2> <p>This design features a creative layout with bold typography and vibrant colors, suitable for showcasing media content.</p> <div class="actions"> <button>View Details</button> </div> </div> </div> </body> </html>