Files
freeCodeCamp/curriculum/challenges/arabic/03-front-end-development-libraries/bootstrap/create-a-bootstrap-row.md
2022-10-20 09:13:17 -07:00

1.3 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
bad87fee1348bd9bec908846 إنشاء Row بأسلوب Bootstrap 0 16813 create-a-bootstrap-row

--description--

الآن ستنشئ صف Bootstrap لعناصرك المضمنة (inline).

إنشاء عنصر div أسفل العلامة h3 مع فئة row.

--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>