* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
54 lines
1.0 KiB
Markdown
54 lines
1.0 KiB
Markdown
---
|
|
id: bad87fee1348bd9aec908746
|
|
title: House our page within a Bootstrap container-fluid div
|
|
challengeType: 0
|
|
forumTopicId: 18198
|
|
dashedName: house-our-page-within-a-bootstrap-container-fluid-div
|
|
---
|
|
|
|
# --description--
|
|
|
|
Now let's make sure all the content on your page is mobile-responsive.
|
|
|
|
Let's nest your `h3` element within a `div` element with the class `container-fluid`.
|
|
|
|
# --hints--
|
|
|
|
Your `div` element should have the class `container-fluid`.
|
|
|
|
```js
|
|
assert($('div').hasClass('container-fluid'));
|
|
```
|
|
|
|
Each of your `div` elements should have closing tags.
|
|
|
|
```js
|
|
assert(
|
|
code.match(/<\/div>/g) &&
|
|
code.match(/<div/g) &&
|
|
code.match(/<\/div>/g).length === code.match(/<div/g).length
|
|
);
|
|
```
|
|
|
|
Your `h3` element should be nested inside a `div` element.
|
|
|
|
```js
|
|
assert($('div').children('h3').length > 0);
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<h3 class="text-primary text-center">jQuery Playground</h3>
|
|
```
|
|
|
|
# --solutions--
|
|
|
|
```html
|
|
<div class="container-fluid">
|
|
<h3 class="text-primary text-center">jQuery Playground</h3>
|
|
</div>
|
|
```
|