--- id: 587d781b367417b2b2512abe title: Aggiungere un effetto ombra ad un elemento in stile Card challengeType: 0 videoUrl: 'https://scrimba.com/c/cvVZdUd' forumTopicId: 301031 dashedName: add-a-box-shadow-to-a-card-like-element --- # --description-- La proprietà `box-shadow` applica una o più ombre ad un elemento. La proprietà `box-shadow` prende i seguenti valori, in ordine: I valori `blur-radius` e `spread-radius` sono opzionali. È possibile creare più ombre usando le virgole per separare le proprietà di ogni elemento `box-shadow`. Ecco un esempio di CSS per creare ombre multiple con un po' di sfocatura, per lo più di colore nero e quasi trasparente: ```css box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); ``` # --instructions-- L'elemento adesso ha un id di `thumbnail`. Tramite questo selettore, utilizza i valori CSS nell'esempio sopra per posizionare una `box-shadow` sulla card. # --hints-- Il tuo codice dovrebbe aggiungere una proprietà `box-shadow` per l'id `thumbnail`. ```js assert(code.match(/#thumbnail\s*?{\s*?box-shadow/g)); ``` Dovresti usare il CSS nell'esempio per assegnare il valore di `box-shadow`. ```js assert( code.match( /box-shadow:\s*?0\s+?10px\s+?20px\s+?rgba\(\s*?0\s*?,\s*?0\s*?,\s*?0\s*?,\s*?0?\.19\)\s*?,\s*?0\s+?6px\s+?6px\s+?rgba\(\s*?0\s*?,\s*?0\s*?,\s*?0\s*?,\s*?0?\.23\)/gi ) ); ``` # --seed-- ## --seed-contents-- ```html

Alphabet


Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

``` # --solutions-- ```html

Alphabet


Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.

```