--- id: bad87fee1348bd9aeda08845 title: Stilizzare responsivamente le caselle di spunta challengeType: 0 forumTopicId: 18269 required: - link: >- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css raw: true dashedName: responsively-style-checkboxes --- # --description-- Dal momento che le classi `col-xs-*` di Bootstrap sono applicabili a tutti gli elementi dei `form`, puoi usarle anche nelle tue caselle di spunta! In questo modo, le caselle di spunta saranno distribuite uniformemente su tutta la pagina, indipendentemente dalla risoluzione dello schermo. # --instructions-- Annida tutte e tre le caselle di spunta in un elemento `
`. Poi annida ciascuna di esse in un elemento `
`. # --hints-- Tutte le caselle di spunta dovrebbero essere annidate in un `div` di classe `row`. ```js assert($('div.row:has(input[type="checkbox"])').length > 0); ``` Ognuna delle tue caselle di spunta dovrebbe essere annidata all'interno del suo `div` di classe `col-xs-4`. ```js assert($('div.col-xs-4:has(input[type="checkbox"])').length > 2); ``` Tutti i tuoi elementi `div` dovrebbero avere dei tag di chiusura. ```js assert( code.match(/<\/div>/g) && code.match(/
/g).length === code.match(/

CatPhotoApp

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

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

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

CatPhotoApp

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

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

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