Nearby lessons
34 of 39π½ BS5 Select Menus
π What Are Bootstrap 5 Select Menus?
Style <select> with .form-select for a custom look. Use .form-label for the label and wrap in a .mb-3 group. For multiple selection, add the multiple attribute.
π½ Basic Select (.form-select)
.form-select β replaces default select styling with Bootstrapβs (border, padding, arrow). Use on <select>. Pair with .form-label and <option> elements.
π Select Sizes (.form-select-lg, .form-select-sm)
.form-select-lg β larger select. .form-select-sm β smaller. Add to the same element as .form-select.
β Select Best Practices
- Use .form-select instead of .form-control for
<select>. - Use .form-label and
for/idfor accessibility.
π§ Test Your Knowledge
2 QuestionsProgress: 0 / 2
Keep Going!BS5 Checks and Radios