--- id: 587d78ab367417b2b2512af3 title: Apply the flex-direction Property to Create Rows in the Tweet Embed challengeType: 0 videoUrl: 'https://scrimba.com/p/pVaDAv/cJb8yuq' forumTopicId: 301104 localeTitle: 使用 flex-direction 在嵌入推文中创建多行 --- ## Description
嵌入推文示例中的headerfooter有自己的子元素,使用flex-direction属性可以把这些子元素排成行。这个属性告诉 CSS 需要将这些子元素水平排列。
## Instructions
headerfooter添加 CSS 属性flex-direction并把值设为 row。
## Tests
```yml tests: - text: 'header应有flex-direction属性,其值应为 row。' testString: assert(code.match(/header\s*?{[^}]*?flex-direction:\s*?row;/g)); - text: 'footer应有flex-direction属性,其值应为 row。' testString: assert(code.match(/footer\s*?{[^}]*?flex-direction:\s*?row;/g)); ```
## Challenge Seed
```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
```
## Solution
```html // solution required ```