Files
2019-06-20 16:14:23 -05:00

35 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Add Flex Superpowers to the Tweet Embed
localeTitle: أضف Flex Flexpowers إلى Tweet تضمين
---
## أضف Flex Flexpowers إلى Tweet تضمين
بناء على [التحدي السابق](https://github.com/freecodecamp/guides/tree/master/src/pages/responsive-web-design/css-flexbox/use-display-flex-to-position-two-boxes/index.md) ، سوف تحتاج إلى إضافة الخاصية إلى المحددات الصحيحة. هنا الحيلة هي تحديد محدد الحق ثم كل ما تحتاجه لإضافة _العرض: فليكس._ خاصية.
سيضمن الرأس أن الصورة والاسم والمقبض ومتابعة الأزرار ستتم إعادة ترتيبها بشكل أفقي.
```CSS
header {
display: flex;
}
```
يحاذي الاسم والمقبض ليبدو كجملة واحدة.
```CSS
header .profile-name {
display:flex;
margin-left: 10px;
}
```
ستؤدي إضافة الخاصية إلى زر المتابعة مع الهامش إلى توسيط الزر إلى الحجم الصحيح.
```CSS
header .follow-btn {
display:flex;
margin: 0 0 0 auto;
}
```
يتم استخدام نفس الفكرة على عناصر التذييل.