Gradient Border Textarea - 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 TextArea</title> <style> body { font-family: 'Poppins', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f0f0; margin: 0; } .textarea-container { position: relative; width: 400px; max-width: 90%; } .custom-textarea { width: 100%; padding: 15px; border: 3px solid transparent; border-radius: 10px; font-size: 1rem; resize: none; outline: none; background-color: #fff; background-image: linear-gradient(#fff, #fff), linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4); background-origin: border-box; background-clip: content-box, border-box; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: border-color 0.3s, box-shadow 0.3s; } .custom-textarea:focus { border-color: #ff9a9e; box-shadow: 0 0 10px rgba(250, 208, 196, 0.5); } .icon { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); cursor: pointer; font-size: 1.5rem; color: #ff9a9e; } </style> </head> <body> <div class="textarea-container"> <textarea class="custom-textarea" rows="5" placeholder="Type your message..."></textarea> <div class="icon">🌸</div> </div> </body> </html>