freeCodeCamp/curriculum/challenges/russian/01-responsive-web-design/applied-visual-design/set-the-line-height-of-para...

1.7 KiB
Raw Blame History

id title challengeType videoUrl localeTitle
587d781d367417b2b2512ac5 Set the line-height of Paragraphs 0 Задайте высоту строки абзацев

Description

CSS предлагает свойство line-height для изменения высоты каждой строки в блоке текста. Как следует из названия, он изменяет количество вертикального пространства, которое получает каждая строка текста.

Instructions

Добавьте свойство line-height в тег p и установите его на 25 пикселей.

Tests

tests:
  - text: Ваш код должен установить <code>line-height</code> тега <code>p</code> до 25 пикселей.
    testString: 'assert($("p").css("line-height") == "25px", "Your code should set the <code>line-height</code> of the <code>p</code> tag to 25 pixels.");'

Challenge Seed

<style>
  p {
    font-size: 16px;

  }
</style>
<p>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</p>

Solution

// solution required