freeCodeCamp/curriculum/challenges/english/03-front-end-libraries/bootstrap/house-our-page-within-a-boo...

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