mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-26 22:01:30 -04:00
1.4 KiB
1.4 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| bad87fee1348bd9bec908846 | Створіть ряд Bootstrap | 0 | 16813 | create-a-bootstrap-row |
--description--
Тепер створимо ряд Bootstrap для вбудованих елементів.
Створіть елемент div з класом row під тегом h3.
--hints--
Додайте елемент div під елементом h3.
assert(
$('div').length > 1 &&
$('div.row h3.text-primary').length == 0 &&
$('div.row + h3.text-primary').length == 0 &&
$('h3.text-primary + div.row').length > 0
);
Елемент div повинен мати клас row
assert($('div').hasClass('row'));
row div має бути вкладеним всередині container-fluid div
assert($('div.container-fluid div.row').length > 0);
Елемент div повинен мати кінцевий тег.
assert(
code.match(/<\/div>/g) &&
code.match(/<div/g) &&
code.match(/<\/div>/g).length === code.match(/<div/g).length
);
--seed--
--seed-contents--
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
</div>
--solutions--
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row"></div>
</div>