2014-12-24 04:13:23 -08:00
---
layout: page
title: Custom forms
---
2014-12-24 15:45:37 -08:00
In the interest of customization and cross browser consistency, Bootstrap include a handful of customized form elements. They're solid replacements for default form controls as they're built on top of semantic and accessible markup.
## Checkboxes and radios
### Checkboxes
2014-12-24 04:13:23 -08:00
{% example html %}
< label class = "c-input c-checkbox" >
< input type = "checkbox" >
< span class = "c-indicator" > < / span >
Check this custom checkbox
< / label >
{% endexample %}
2014-12-24 15:45:37 -08:00
### Radios
2014-12-24 04:13:23 -08:00
{% example html %}
< label class = "c-input c-radio" >
< input id = "radio1" name = "radio" type = "radio" >
< span class = "c-indicator" > < / span >
Toggle this custom radio
< / label >
< label class = "c-input c-radio" >
< input id = "radio2" name = "radio" type = "radio" >
< span class = "c-indicator" > < / span >
Or toggle this other custom radio
< / label >
{% endexample %}
2014-12-24 15:45:37 -08:00
### Stacked
Custom checkboxes and radios are inline to start. Add a parent with class `.c-inputs-stacked` to ensure each form control is on separate lines.
{% example html %}
< div class = "c-inputs-stacked" >
< label class = "c-input c-radio" >
< input id = "radioStacked1" name = "radio-stacked" type = "radio" >
< span class = "c-indicator" > < / span >
Toggle this custom radio
< / label >
< label class = "c-input c-radio" >
< input id = "radioStacked2" name = "radio-stacked" type = "radio" >
< span class = "c-indicator" > < / span >
Or toggle this other custom radio
< / label >
< / div >
{% endexample %}