diff --git a/docs/topics/html-and-forms.md b/docs/topics/html-and-forms.md index 0b4afca12..2bf955fda 100644 --- a/docs/topics/html-and-forms.md +++ b/docs/topics/html-and-forms.md @@ -92,7 +92,7 @@ The following view demonstrates an example of using a serializer in a template f The `render_form` tag takes an optional `template_pack` argument, that specifies which template directory should be used for rendering the form and form fields. -REST framework includes three built-in template packs, all based on Bootstrap 3. The built-in styles are `horizontal`, `vertical`, and `inline`. The default style is `horizontal`. To use any of these template packs you'll want to also include the Bootstrap 3 CSS. +REST framework includes three built-in template packs, all based on Bootstrap 3. The built-in styles are `horizontal`, `vertical`, and `inline`. The default style is `vertical`. To use any of these template packs you'll want to also include the Bootstrap 3 CSS. The following HTML will link to a CDN hosted version of the Bootstrap 3 CSS: @@ -144,13 +144,15 @@ Presents labels and controls alongside each other, using a 2/10 column split. *This is the form style used in the browsable API and admin renderers.* +Note: make sure you add "form-horizontal" class to `form` tag as per Bootstrap 3 guidelines. + {% load rest_framework %} ...