Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <style> .pill-form-container { max-width: 400px; margin: 40px auto; padding: 30px; background-color: #fff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); font-family: 'Poppins', sans-serif; } @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); .pill-form-container h2 { text-align: center; font-weight: 600; margin-bottom: 30px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-weight: 500; margin-bottom: 8px; padding-left: 15px; /* Indent label slightly */ font-size: 0.95rem; } /* -- The Pill Shape Style -- */ .form-group input { width: 100%; padding: 12px 20px; border: 1px solid #d0d0d0; background-color: #f9f9f9; font-size: 1rem; box-sizing: border-box; /* This creates the pill shape */ border-radius: 50px; transition: all 0.2s ease; } .form-group input::placeholder { color: #a0a0a0; } .form-group input:focus { outline: none; border-color: #007bff; background-color: #fff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); } /* -- End Pill Shape Style -- */ .submit-btn { width: 100%; padding: 12px 20px; border: none; background-color: #007bff; color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; /* Apply the pill shape to the button too */ border-radius: 50px; transition: background-color 0.2s; } .submit-btn:hover { background-color: #0069d9; } </style> <div class="pill-form-container"> <h2>Join Our Community</h2> <form action="#" method="post"> <div class="form-group"> <label for="pill-name">Name</label> <input type="text" id="pill-name" name="name" placeholder="Enter your full name" required> </div> <div class="form-group"> <label for="pill-email">Email</label> <input type="email" id="pill-email" name="email" placeholder="you@example.com" required> </div> <div class="form-group"> <label for="pill-password">Password</label> <input type="password" id="pill-password" name="password" placeholder="Create a secure password" required> </div> <button type="submit" class="submit-btn">Create Account</button> </form> </div>