body, form { display: flex; } form { width: 200px; flex-direction: column; padding: 10px; text-align: center; border: 2px solid rgb(156, 153, 153); border-radius: 10px; } input { margin-top: 15px; }