--- 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(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```