--- id: 587d78ab367417b2b2512af1 title: Add Flex Superpowers to the Tweet Embed challengeType: 0 videoUrl: 'https://scrimba.com/p/pVaDAv/c9W7MhM' forumTopicId: 301100 dashedName: add-flex-superpowers-to-the-tweet-embed --- # --description-- To the right is the tweet embed that will be used as a practical example. Some of the elements would look better with a different layout. The last challenge demonstrated `display: flex`. Here you'll add it to several components in the tweet embed to start adjusting their positioning. # --instructions-- Add the CSS property `display: flex` to all of the following items - note that the selectors are already set up in the CSS: `header`, the header's `.profile-name`, the header's `.follow-btn`, the header's `h3` and `h4`, the `footer`, and the footer's `.stats`. # --hints-- Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers. ```js assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none'); ``` Your `header` should have a `display` property set to `flex`. ```js assert($('header').css('display') == 'flex'); ``` Your `footer` should have a `display` property set to `flex`. ```js assert($('footer').css('display') == 'flex'); ``` Your `h3` should have a `display` property set to `flex`. ```js assert($('h3').css('display') == 'flex'); ``` Your `h4` should have a `display` property set to `flex`. ```js assert($('h4').css('display') == 'flex'); ``` Your `.profile-name` should have a `display` property set to `flex`. ```js assert($('.profile-name').css('display') == 'flex'); ``` Your `.follow-btn` should have a `display` property set to `flex`. ```js assert($('.follow-btn').css('display') == 'flex'); ``` Your `.stats` should have a `display` property set to `flex`. ```js assert($('.stats').css('display') == 'flex'); ``` # --seed-- ## --seed-contents-- ```html
Quincy Larson's profile picture

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
``` # --solutions-- ```html
Quincy Larson's profile picture

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
```