Files
freeCodeCamp/curriculum/challenges/german/03-front-end-development-libraries/bootstrap/create-a-bootstrap-row.md
2022-08-19 20:53:29 +02:00

1.3 KiB

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
bad87fee1348bd9bec908846 Erstelle eine Bootstrap Zeile 0 16813 create-a-bootstrap-row

--description--

Jetzt erstellen wir eine Bootstrap Zeile für unsere Inline-Elemente.

Erstelle ein div Element unter dem h3 Tag mit der Klasse row.

--hints--

Du solltest ein div Element unter deinem h3 Element hinzufügen.

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

Dein div Element soll die Klasse row haben

assert($('div').hasClass('row'));

Dein row div soll innerhalb des container-fluid div verschachtelt sein

assert($('div.container-fluid div.row').length > 0);

Dein div Element sollte einen abschließenden Tag 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>

--solutions--

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