--- id: bad87fee1348cd8acef08812 title: Create a Block Element Bootstrap Button challengeType: 0 forumTopicId: 16810 --- ## Description
Normally, your button elements with the btn and btn-default classes are only as wide as the text that they contain. For example: <button class="btn btn-default">Submit</button> 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. <button class="btn btn-default btn-block">Submit</button> 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.
## Instructions
## Tests
```yml tests: - text: Your button should still have the btn and btn-default classes. testString: assert($("button").hasClass("btn") && $("button").hasClass("btn-default")); - text: Your button should have the class btn-block. testString: assert($("button").hasClass("btn-block")); - text: All of your button elements should have closing tags. testString: assert(code.match(/<\/button>/g) && code.match(/

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```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
```