---
id: bad87fee1348bd9aedf08824
title: Add Different Padding to Each Side of an Element
challengeType: 0
guideUrl: 'https://russian.freecodecamp.org/guide/certificates/add-different-padding-to-each-side-of-an-element'
videoUrl: ''
localeTitle: Добавление различной прокладки к каждой стороне элемента
---
## Description
Иногда вам нужно настроить элемент таким образом, чтобы на каждой его стороне было различное количество padding
. CSS позволяет вам управлять padding
всех четырех отдельных сторон элемента с помощью свойств padding-top
, padding-right
, padding-bottom
и padding-left
.
## Instructions
Дайте синей коробке padding
40px
на ее верхней и левой стороне, но только 20px
на ее нижней и правой стороне.
## Tests
```yml
tests:
- text: Ваш blue-box
класс должен дать верхнюю часть элементов 40px
из padding
.
testString: 'assert($(".blue-box").css("padding-top") === "40px", "Your blue-box
class should give the top of the elements 40px
of padding
.");'
- text: Ваш класс с blue-box
должен давать право на элементы 20px
padding
.
testString: 'assert($(".blue-box").css("padding-right") === "20px", "Your blue-box
class should give the right of the elements 20px
of padding
.");'
- text: Ваш класс blue-box
должен дать основание элементов 20px
padding
.
testString: 'assert($(".blue-box").css("padding-bottom") === "20px", "Your blue-box
class should give the bottom of the elements 20px
of padding
.");'
- text: Ваш blue-box
класс должен дать слева от элементов 40px
из padding
.
testString: 'assert($(".blue-box").css("padding-left") === "40px", "Your blue-box
class should give the left of the elements 40px
of padding
.");'
```
## Challenge Seed
```html
margin
padding
padding
```
## Solution
```js
// solution required
```