---
id: 587d78ac367417b2b2512af7
title: justify-content プロパティを埋め込みツイートで使用する
challengeType: 0
videoUrl: 'https://scrimba.com/p/pVaDAv/c43GgTa'
forumTopicId: 301115
dashedName: use-the-justify-content-property-in-the-tweet-embed
---
# --description--
前回のチャレンジでは、`justify-content` プロパティの例を示しました。 埋め込みツイートにこのプロパティを適用することで `.profile-name` 要素内の項目を整列させることができます。
# --instructions--
ヘッダーの `.profile-name` 要素に CSS プロパティ `justify-content` を追加し、値として前回のチャレンジで説明したいずれかのオプションを設定してください。
# --hints--
`.follow-btn` がページ上に表示されている必要があります。 必ず広告ブロッカーなどの拡張機能をオフにしてください。
```js
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
```
`.profile-name` 要素は `justify-content` プロパティを持ち、次のいずれかの値が設定されていなければなりません: `center`、`flex-start`、`flex-end`、`space-between`、`space-around`、`space-evenly`。
```js
assert(
code.match(
/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g
)
);
```
# --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 2018I 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