Modern Media Object - 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 Media Object</title> <style> body { font-family: 'Arial', sans-serif; background-color: #e0f7fa; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .media-object { display: flex; align-items: center; background: #ffffff; border-radius: 10px; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .media-object:hover { transform: translateY(-5px); box-shadow: 0 20px 25px rgba(0,0,0,0.2); } .media-object img { border-radius: 10px; width: 80px; height: 80px; margin-right: 15px; transition: transform 0.3s ease; } .media-object:hover img { transform: scale(1.1); } .media-object .content { max-width: 350px; } .media-object .content h2 { margin: 0; font-size: 1.3rem; color: #333; display: flex; align-items: center; } .media-object .content h2 .emoji { margin-left: 8px; } .media-object .content p { margin: 10px 0; color: #555; } .media-object .content .icons { display: flex; gap: 8px; } .media-object .content .icons i { font-size: 1.3rem; color: #555; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; } .media-object .content .icons i:hover { color: #1e88e5; transform: scale(1.2); } </style> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </head> <body> <div class="media-object"> <img src="https://via.placeholder.com/80" alt="Profile Picture"> <div class="content"> <h2>Chris Johnson <span class="emoji">💡</span></h2> <p>Proin quis lorem sit amet nunc vestibulum commodo. Nullam euismod dolor quis arcu malesuada.</p> <div class="icons"> <i class="fas fa-heart"></i> <i class="fas fa-comment"></i> <i class="fas fa-share-alt"></i> </div> </div> </div> </body> </html>