<div class="input-wrapper"> <input type="text" placeholder="Type here..." name="text" class="input" /> </div>
.input-wrapper { position: relative; width: 50%; max-width: 300px; } .input-wrapper input { background-color: #f5f5f5; border: 2px solid #ddd; padding: 1.2rem 1rem; font-size: 1.1rem; width: 100%;