Comment Box
Home
Snippets
Comment Box
HTML
CSS
JS
<div class="comment-box"> <h3>Leave a Comment</h3> <textarea placeholder="Write your comment here..."></textarea> <button>Submit</button> </div>
body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #74ebd5, #9face6); margin: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .comment-box { width: 100%; max-width: 320px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); } .comment-box h3 { margin: 0 0 15px; color: #333; } .comment-box textarea { width: 100%; height: 100px; resize: none; border: 1px solid #ddd; border-radius: 8px; padding: 10px; font-size: 16px; outline: none; transition: border-color 0.3s; box-sizing: border-box; } .comment-box textarea:focus { border-color: #74ebd5; } .comment-box button { margin-top: 15px; width: 100%; background: #74ebd5; color: #fff; font-size: 16px; border: none; border-radius: 8px; padding: 10px; cursor: pointer; transition: background 0.3s; } .comment-box button:hover { background: #67d3c0; }
// JavaScript
Ad #1
Ad #2
Scroll to Top