2018-10-04 14:37:37 +01:00
|
|
|
---
|
|
|
|
id: bad87fee1348bd9aec908746
|
|
|
|
title: House our page within a Bootstrap container-fluid div
|
|
|
|
challengeType: 0
|
2019-07-31 11:32:23 -07:00
|
|
|
forumTopicId: 18198
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: house-our-page-within-a-bootstrap-container-fluid-div
|
2018-10-04 14:37:37 +01:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
Now let's make sure all the content on your page is mobile-responsive.
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
Let's nest your `h3` element within a `div` element with the class `container-fluid`.
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --hints--
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
Your `div` element should have the class `container-fluid`.
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
|
|
|
assert($('div').hasClass('container-fluid'));
|
2018-10-04 14:37:37 +01:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
Each of your `div` elements should have closing tags.
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
|
|
|
assert(
|
|
|
|
code.match(/<\/div>/g) &&
|
|
|
|
code.match(/<div/g) &&
|
|
|
|
code.match(/<\/div>/g).length === code.match(/<div/g).length
|
|
|
|
);
|
|
|
|
```
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
Your `h3` element should be nested inside a `div` element.
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
|
|
|
assert($('div').children('h3').length > 0);
|
2018-10-04 14:37:37 +01:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --seed--
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --seed-contents--
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```html
|
|
|
|
<h3 class="text-primary text-center">jQuery Playground</h3>
|
|
|
|
```
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --solutions--
|
2018-10-04 14:37:37 +01:00
|
|
|
|
2019-05-02 05:24:38 -04:00
|
|
|
```html
|
|
|
|
<div class="container-fluid">
|
|
|
|
<h3 class="text-primary text-center">jQuery Playground</h3>
|
|
|
|
</div>
|
2018-10-04 14:37:37 +01:00
|
|
|
```
|