How can I use . container-fluid in code?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<div class="container-fluid" link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<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>

.container-fluid {
<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://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://freecatphotoapp.com/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>

</div>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; V2111) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

Challenge: Use Responsive Design with Bootstrap Fluid Containers

Link to the challenge:

FIRST:
Because there are are a number of things out of place in the code, go ahead and hit the RESET BUTTON.




THE TUTORIAL ASKS US TO: Nest all of our HTML (except the link tag and the style element) in a div element

To NEST means to PLACE INSIDE: In this case, we’re nesting our <div> code from here, under the </style> tag:

Screenshot 2022-03-29 11.45.50 AM

To here, at the end of the HTML with a closing </div>.

Screenshot 2022-03-29 11.45.32 AM



SECOND: THE TUTORIAL ASKS US: To label our <div> class " container-fluid."

Screenshot 2022-03-29 11.47.14 AM

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.