Custom CSS for Bootstrap (omg-responsive)

Custom CSS for Bootstrap (omg-responsive)
0.0 0

#1

Tell us what’s happening:
What does it mean “Add the img-responsive class to your top image.” Having trouble with this. Please help, thanks.

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
 ="img-responsive"
  }

  h2 {
    font-family: Lobster, Monospace;
  }

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


  }
</style>
<img-responsive/>
<div class="container-fluid">
  <h2 class="img-responsive text-primary text-center img-responsive">CatPhotoApp</h2>

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

 
  
  <div class="row">
    <div class="col-xs-4">
      <button class="btn btn-block btn-primary">Like</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-info">Info</button>
    </div>
    <div class="col-xs-4">
      <button class="btn btn-block btn-danger">Delete</button>
    </div>
  </div>
  <p>Things cats love:</p>
  <ul>
    <li>cat nip</li>
    <li>laser pointers</li>
    <li>lasagna</li>
  </ul>
  <ol>
    <li>flea treatment</li>
    <li>thunder</li>
    <li>other cats</li>
  </ol>
  <form action="/submit-cat-photo img-responsive">
    <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:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15.

Link to the challenge:


#2

You seem to have plastered img-responsive all over the place. Resetting would probably be a good idea in this case, so can start with a clean slate.

The only place where img-responsive needs to be is stated in the challenge summary:

Add the img-responsive class to your top image.

It’s described as:

Finally, remove the "smaller-image" class from your first img element and replace it with the img-responsive class.

So, you have , which is not a class, but an element, and on top of that a non-existing one. The

="img-responsive"
  }

isn’t doing much either, up there in the style sheet.

Some goes for the first img-responsive in:

<img img-responsive="image responsive"

That’s not a class, but an attribute. Also not an existing one, so it doesn’t do anything.

It’s all about understanding what is asked really. I would advise you to lookup what an ‘element’ is, what a ‘class’ is and what is considered to be an ‘attribute’. It will help you tremendously later on, understanding this jargon.