---
id: 587d78ab367417b2b2512af1
title: Aggiungere i superpoteri Flex al Tweet Incorporato
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVaDAv/c9W7MhM'
forumTopicId: 301100
dashedName: add-flex-superpowers-to-the-tweet-embed
---
# --description--
A destra puoi vedere il tweet è incorporato che sarà utilizzato come esempio pratico. Alcuni degli elementi apparirebbero meglio con un layout diverso. L'ultima sfida ha mostrato il funzionamento di `display: flex`. Qui lo aggiungerai a diversi componenti nel tweet incorporato per iniziare a regolare il loro posizionamento.
# --instructions--
Aggiungi la proprietà CSS `display: flex` a tutti i seguenti elementi - nota che i selettori sono già impostati nel CSS:
`header`, il `.profile-name` dell'header, il `.follow-btn` dell'header, l'`h3` e `h4` dell'header, il `footer` e le `.stats` del footer.
# --hints--
Il tuo `.follow-btn` dovrebbe apparire sulla pagina. Assicurati di disattivare tutte le estensioni come ad esempio gli adblock.
```js
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
```
Il tuo `header` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('header').css('display') == 'flex');
```
Il tuo`footer` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('footer').css('display') == 'flex');
```
Il tuo`h3` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('h3').css('display') == 'flex');
```
Il tuo`h4` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('h4').css('display') == 'flex');
```
Il tuo `.profile-name` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('.profile-name').css('display') == 'flex');
```
Il tuo `.follow-btn` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('.follow-btn').css('display') == 'flex');
```
Il tuo `.stats` dovrebbe avere una proprietà `display` impostata su `flex`.
```js
assert($('.stats').css('display') == 'flex');
```
# --seed--
## --seed-contents--
```html
Quincy Larson
@ossia
I meet so many people who are in search of that one trick that will help them work smart. Even if you work smart, you still have to work hard.
1:32 PM - 12 Jan 2018
I meet so many people who are in search of that one trick that will help them work smart. Even if you work smart, you still have to work hard.
1:32 PM - 12 Jan 2018