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