Files
freeCodeCamp/curriculum/challenges/english/03-front-end-libraries/bootstrap/split-your-bootstrap-row.english.md
Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

1.3 KiB

id, title, challengeType
id title challengeType
bad87fee1348bd9aec908847 Split Your Bootstrap Row 0

Description

Now that we have a Bootstrap Row, let's split it into two columns to house our elements. Create two div elements within your row, both with the class col-xs-6.

Instructions

Tests

tests:
  - text: Nest two <code>div class="col-xs-6"</code> elements within your <code>div class="row"</code> element.
    testString: assert($("div.row > div.col-xs-6").length > 1, 'Nest two <code>div class="col-xs-6"</code> elements within your <code>div class="row"</code> element.');
  - text: Make sure all your <code>div</code> elements have closing tags.
    testString: assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, 'Make sure all your <code>div</code> elements have closing tags.');

Challenge Seed

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


  </div>
</div>

Solution

// solution required