---
id: bad87fee1348cd8acef08812
title: Create a Block Element Bootstrap Button
challengeType: 0
forumTopicId: 16810
dashedName: create-a-block-element-bootstrap-button
---
# --description--
Normally, your `button` elements with the `btn` and `btn-default` classes are only as wide as the text that they contain. For example:
``
This button would only be as wide as the word "Submit".
By making them block elements with the additional class of `btn-block`, your button will stretch to fill your page's entire horizontal space and any elements following it will flow onto a "new line" below the block.
``
This button would take up 100% of the available width.
Note that these buttons still need the `btn` class.
Add Bootstrap's `btn-block` class to your Bootstrap button.
# --hints--
Your button should still have the `btn` and `btn-default` classes.
```js
assert($('button').hasClass('btn') && $('button').hasClass('btn-default'));
```
Your button should have the class `btn-block`.
```js
assert($('button').hasClass('btn-block'));
```
All of your `button` elements should have closing tags.
```js
assert(
code.match(/<\/button>/g) &&
code.match(/