---
id: bad87fee1348bd9afdf08726
title: Use Clockwise Notation to Specify the Margin of an Element
challengeType: 0
videoUrl: ''
localeTitle: استخدم "Clockwise Notation" لتحديد "هامش العنصر"
---
## Description
دعونا نحاول مرة أخرى ، ولكن مع margin
هذه المرة. بدلا من تحديد عنصر في margin-top
، margin-right
، margin-bottom
، و margin-left
خصائص فردية، يمكنك تحديد كل منهم في سطر واحد، مثل هذا: margin: 10px 20px 10px 20px;
تعمل هذه القيم الأربعة مثل الساعة: أعلى ، يمين ، سفلي ، يسار ، وستنتج نفس النتيجة تمامًا مثل استخدام إرشادات الهامش الخاصة بالجانب.
## Instructions
استخدام Clockwise Notation
لإعطاء عنصر مع blue-box
الطبقة هامش 40px
على جانبها العلوي والأيسر، ولكن فقط 20px
على القاع والجانب الأيمن.
## Tests
```yml
tests:
- text: لديك blue-box
الطبقة يجب أن تعطي الجزء العلوي من عناصر 40px
من margin
.
testString: 'assert($(".blue-box").css("margin-top") === "40px", "Your blue-box
class should give the top of elements 40px
of margin
.");'
- text: يجب أن تعطي فئة blue-box
حق العناصر 20 20px
من margin
.
testString: 'assert($(".blue-box").css("margin-right") === "20px", "Your blue-box
class should give the right of elements 20px
of margin
.");'
- text: يجب أن تعطي صفحتك blue-box
أسفل العناصر 20 20px
من margin
.
testString: 'assert($(".blue-box").css("margin-bottom") === "20px", "Your blue-box
class should give the bottom of elements 20px
of margin
.");'
- text: يجب أن تعطيك فئة blue-box
يمين العناصر 40px
من margin
.
testString: 'assert($(".blue-box").css("margin-left") === "40px", "Your blue-box
class should give the left of elements 40px
of margin
.");'
```
## Challenge Seed
```html
margin
padding
padding
```
## Solution
```js
// solution required
```