Gradient Border Iframe - 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>Gradient Border Iframe</title> <style> body { font-family: 'Arial', sans-serif; background: #e0f7fa; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .iframe-container { position: relative; width: 80%; height: 70%; border: 10px solid; border-image: linear-gradient(45deg, #ff6b6b, #f5e7e3, #4e54c8, #8e8d8a); border-image-slice: 1; border-radius: 20px; overflow: hidden; } .iframe-title { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.8); color: #333; padding: 5px 15px; border-radius: 10px; font-size: 1.3em; font-weight: bold; display: flex; align-items: center; gap: 10px; } .iframe-title .icon { animation: colorChange 3s infinite alternate; } @keyframes colorChange { 0% { color: #ff6b6b; } 100% { color: #4e54c8; } } iframe { width: 100%; height: 100%; border: none; border-radius: 20px; } </style> </head> <body> <div class="iframe-container"> <div class="iframe-title"> <span class="icon">🌈</span> Gradient Border Iframe </div> <iframe src="https://www.example.com" title="Example Iframe"></iframe> </div> </body> </html>