Files
freeCodeCamp/curriculum/challenges/ukrainian/03-front-end-development-libraries/bootstrap/house-our-page-within-a-bootstrap-container-fluid-div.md

1.3 KiB
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
bad87fee1348bd9aec908746 Розміщення сторінки всередині елементу Bootstrap container-fluid div 0 18198 house-our-page-within-a-bootstrap-container-fluid-div

--description--

Тепер переконайтеся, що весь вміст сторінки адаптований до мобільних пристроїв.

Вкладіть елемент h3 у елемент div із класом container-fluid.

--hints--

Елемент div повинен мати клас container-fluid.

assert($('div').hasClass('container-fluid'));

Кожен із елементів div повинен містити кінцевий теґ.

assert(
  code.match(/<\/div>/g) &&
    code.match(/<div/g) &&
    code.match(/<\/div>/g).length === code.match(/<div/g).length
);

Елемент h3 повинен бути вкладений у елемент div.

assert($('div').children('h3').length > 0);

--seed--

--seed-contents--

<h3 class="text-primary text-center">jQuery Playground</h3>

--solutions--

<div class="container-fluid">
    <h3 class="text-primary text-center">jQuery Playground</h3>
</div>