freeCodeCamp/curriculum/challenges/german/03-front-end-development-li.../bootstrap/split-your-bootstrap-row.md

1.1 KiB

id title challengeType forumTopicId dashedName
bad87fee1348bd9aec908847 Teile dein Bootstrap-Zeile 0 18306 split-your-bootstrap-row

--description--

Da wir nun eine Bootstrap-Zeile haben, können wir sie in zwei Spalten aufteilen, um unsere Elemente unterzubringen.

Erstelle innerhalb deiner Zeile zwei div-Elemente, beide mit der Klasse col-xs-6.

--hints--

Zwei div class="col-xs-6"-Elemente sollten in deinem div class="row"-Element verschachtelt sein.

assert($('div.row > div.col-xs-6').length > 1);

All deine div-Elemente sollten abschließende Tags haben.

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 class="row">


  </div>
</div>

--solutions--

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