--- id: bad87fee1348cd8acef08812 title: Crear un botón Bootstrap como elemento de bloque challengeType: 0 forumTopicId: 16810 dashedName: create-a-block-element-bootstrap-button --- # --description-- Normalmente, tus elementos `button` con las clases `btn` y `btn-default` son tan anchos como el texto que contienen. Por ejemplo: ```html ``` Este botón será tan ancho como la palabra `Submit`. Al hacer los elementos de bloque con la clase `btn-block`, tu botón ocupará el ancho horizontal de la página y cualquier elemento que lo siga se posicionará en una "nueva línea" debajo del bloque. ```html ``` Este botón tomará el 100% del ancho disponible. Ten en cuenta que estos botones aún necesitan la clase `btn`. Añade la clase `btn-block` a tu botón Bootstrap. # --hints-- Tu botón debe contener las clases `btn` y `btn-default`. ```js assert($('button').hasClass('btn') && $('button').hasClass('btn-default')); ``` Tu botón debe contener la clase `btn-block`. ```js assert($('button').hasClass('btn-block')); ``` Todos tu elementos `button` deben tener etiquetas de cierre. ```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
```