--- id: 587d78ab367417b2b2512af3 title: flex-direction プロパティを適用して埋め込みツイートに行を作成する challengeType: 0 videoUrl: 'https://scrimba.com/p/pVaDAv/cJb8yuq' forumTopicId: 301104 dashedName: apply-the-flex-direction-property-to-create-rows-in-the-tweet-embed --- # --description-- 埋め込みツイート例の `header` と `footer` には子要素があり、`flex-direction` プロパティを使用して行として配置することができます。 このプロパティは CSS に子要素を水平方向に配置するよう指示します。 # --instructions-- CSS プロパティ `flex-direction` を `header` と `footer` に追加し、値を `row` に設定してください。 # --hints-- `.follow-btn` がページ上に表示されている必要があります。 必ず広告ブロッカーなどの拡張機能をオフにしてください。 ```js assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none'); ``` `header` は `flex-direction` プロパティを `row` に設定する必要があります。 ```js assert(code.match(/header\s*?{[^}]*?flex-direction:\s*?row;/g)); ``` `footer` は `flex-direction` プロパティを `row` に設定する必要があります。 ```js assert(code.match(/footer\s*?{[^}]*?flex-direction:\s*?row;/g)); ``` # --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
```