Make Images Mobile Responsive with bootscrap

Make Images Mobile Responsive with bootscrap
0

#1

I’ve written the code correctly and checked many times for any mistake and I’ve tried every solution present on the forum but it is not working, all the conditions are fulfilled except the one "your image should have and src attribute of “https://bit.ly/fcc-running-cats”. I’ve tried each and everything, my code is below, Please help!!

Your code so far

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

<div class="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://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
  
  <img class="img-responsive" src="http://bit.ly/fcc-running-cats" alt="Three kittens running towards the camera. ">

  <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>
</div>

Your browser information:

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

Link to the challenge:


#2

Hello @haroon97.
You have to create a new image tag below the one you currently have.

<img src="the link given to you when you read the exercise" class="img-responsive">

#3

Three kittens running towards the camera.

this is my code but Its not working I’ve tried every solution but still I’m stuck on this problem.


#4

Can you copy/paste your current code for this again with the new image added? Make sure to copy all the code and not just the code for the image you added. Thanks.


#5

This is my code so far what is the mistake in this code?


#6

Your new image should start with https: and not http:


#7

thaankk you soo much!! what a silly mistake xD