# Use Responsive Design with Bootstrap Fluid Containers

**URL:** <https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797>\
**Category:** General\
**Created:** [August 15, 2017, 12:28am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797 "2017-08-15T00:28:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dri/32/161480_2.png) [@Dri](https://forum.freecodecamp.org/u/Dri)\
**Post date:** [August 15, 2017, 12:28am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/1 "2017-08-15T00:28:08Z")

</div>

“Make sure you have nested all HTML elements in .container-fluid.”

Somebody help?

```auto
<div class="container-fluid" link href="https://fonts.googleapis.com/css?family=Lobster rel= stylesheet" type="text/css"></div>
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor"> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality"> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Crazy</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/use-responsive-design-with-bootstrap-fluid-containers](https://www.freecodecamp.org/challenges/use-responsive-design-with-bootstrap-fluid-containers) ![Sem título](https://sea3.discourse-cdn.com/freecodecamp/uploads/default/original/3X/3/4/34ca50d2d7f920f720a79a109385f6999e05ef8a.png)

---

<div class="post-metadata">

**Author:** ![psyperl](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/psyperl/32/108474_2.png) [@psyperl](https://forum.freecodecamp.org/u/psyperl)\
**Post date:** [August 15, 2017, 6:53am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/2 "2017-08-15T06:53:02Z")

</div>

HTML tag have an opening tag and a closing tag

example:  
`<div>` – is an opening tag  
`</div>` – is a closing tag

nesting some element inside a div tag can often means to write the new element(s) after the opening tag and before the closing tag.

Example to nest a P element in div element:

```auto
<div>
 <p></p>
</div>

```

---

<div class="post-metadata">

**Author:** ![benjaminadk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/benjaminadk/32/50682_2.png) [@benjaminadk](https://forum.freecodecamp.org/u/benjaminadk)\
**Post date:** [August 15, 2017, 7:24am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/3 "2017-08-15T07:24:43Z")

</div>

like the person above said, HTML elements such as `<p></p>` or `<div></div>`, the link element is for a font. that would not be something to put inside a `.container-fluid` something like that will stand alone inside the `<head>` of the HTML page. i guess the wording is a little misleading. in general this is the layout.

```auto
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Lobster rel= stylesheet" type="text/css"/>
<style>
//all of the style declarations
</style>
</head>
<body>
<div class='container-fluid'>
//all elements in here
</div>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![Dri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dri/32/161480_2.png) [@Dri](https://forum.freecodecamp.org/u/Dri)\
**Post date:** [August 16, 2017, 4:38am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/4 "2017-08-16T04:38:10Z")

</div>

thank you

how can I give you cookie points?

---

<div class="post-metadata">

**Author:** ![Dri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dri/32/161480_2.png) [@Dri](https://forum.freecodecamp.org/u/Dri)\
**Post date:** [August 16, 2017, 4:39am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/5 "2017-08-16T04:39:08Z")

</div>

thank you

how can I give you cookie points? I can’t find how to do this

---

<div class="post-metadata">

**Author:** ![psyperl](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/psyperl/32/108474_2.png) [@psyperl](https://forum.freecodecamp.org/u/psyperl)\
**Post date:** [August 16, 2017, 5:01am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/6 "2017-08-16T05:01:19Z")

</div>

you are welcome,  
i don’t think you can give brownie points here…  
at least not that i know of 😃

---

<div class="post-metadata">

**Author:** ![benjaminadk](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/benjaminadk/32/50682_2.png) [@benjaminadk](https://forum.freecodecamp.org/u/benjaminadk)\
**Post date:** [August 16, 2017, 5:27am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/7 "2017-08-16T05:27:07Z")

</div>

don’t worry about it. i just ate some brownie bites here at home, I’m good.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 9:36am UTC](https://forum.freecodecamp.org/t/use-responsive-design-with-bootstrap-fluid-containers/141797/8 "2021-01-17T09:36:59Z")

</div>

Closed on January 17, 2021, 9:36am UTC


