.typelist { display: block; } .formbox { background-color: #f1f2f3; border-top: 3px solid #1f3058; border-radius: 4px; padding: 20px; margin-bottom: 20px; } .amountbox { display: inline-block; padding: 5px; width: auto; } .amountselector { width: auto; } .amountinput { width: auto; font-size: 11px; } @media (max-width: 991px) { .amountbox { width: 33%; } .amountselector { width: 100%; } .amountinput { width: 100%; } }