1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<!doctype html> <style> label { padding: 2px 4px; display: flex; flex-flow: column; background: #ddd; overflow: hidden; min-height: 0; min-width: 0; width: 80px; } input { flex: 1 1 auto; margin: 4px; min-height: 0; min-width: 0; } </style> <label> <input type="text"> </label>