# Build a Tribute Page - class="img-responsive" useless by using bootstrap \[SOLVED\]

**URL:** <https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859>\
**Category:** General\
**Created:** [April 4, 2017, 3:02am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859 "2017-04-04T03:02:26Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 3:02am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/1 "2017-04-04T03:02:27Z")

</div>

hi all,

I am doing the basic front-end Development Project-Build a Tribute Page, I followed the step to work it in CodePen, and configure the bootstrap as the CSS library. In this case, you need to fill a image in the page, my image has a very large size so I used the bootstrap class “img-responsive”(what I Learned from FCC lesson before) to make my image to fit to my browser view(or called the CodePen preview view), but it is useless, nothing to fit. Then I tried other bootstrap classes such as “text-primary” on my h tag, it’s ok. So I don’t know what’s wrong about it?

this is my code in CodePen html panel:

```
<div class="container-fluid">
  <header>
    <hgroup>
      <h3 class="text-primary">The Greatest Man in china</h3>
      <h4>Chief Ze Dong Mao</h4>
    </hgroup>
  </header>
    <figure>
      <img class="img-responsive" src="http://image18.poco.cn/mypoco/myphoto/20170403/16/18551742020170403165340040.jpg?2048x1454_120" alt="毛泽东在延安" />
      <figcaption>
        <small>Chief Ze Dong Mao in xxxx
        </small>
      </figcaption>
    </figure> 
  <p>
       毛泽动。。。。。。。。。  
  </p>
  <p>关于毛泽东更多的事迹，可以参看<a href="http://baike.baidu.com/item/%E6%AF%9B%E6%B3%BD%E4%B8%9C/113835?sefr=cr">这里</a>了解详情</p>
  <footer>
    <small>copyright by Ivan Gao 2017</small>
  </footer>
</div>    

```

Hope any one help me, thanks!

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [April 4, 2017, 3:09am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/2 "2017-04-04T03:09:05Z")

</div>

Are you sure you’re not using Bootstrap 4? It seems it doesn’t have any `img-responsive` class.

---

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 3:15am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/3 "2017-04-04T03:15:15Z")

</div>

I configure the CodePen default Bootstrap - “[https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css](https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css)”, I thought it before and I configured the Bootstrap 3.1 - “[http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css](http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css)” as a test, but it still useless, so I don’t know what’s wrong about it, my syntax error or editor error or Bootstrap version error?

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [April 4, 2017, 3:16am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/4 "2017-04-04T03:16:20Z")

</div>

Could you post a link to your codepen?

---

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 3:18am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/5 "2017-04-04T03:18:38Z")

</div>

it’s here: [https://codepen.io/ccrubby/pen/jBddoq](https://codepen.io/ccrubby/pen/jBddoq)

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [April 4, 2017, 3:23am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/6 "2017-04-04T03:23:37Z")

</div>

How about using this:  
`https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css`

---

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 3:30am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/7 "2017-04-04T03:30:48Z")

</div>

yeah, it’s wonderful! thansk a ton. But one more question, why it’s ok in bootstrap 3.3.7 not 3.3.1(FCC lesson used it and img-responsive still ok)? 😁

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [April 4, 2017, 3:34am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/8 "2017-04-04T03:34:18Z")

</div>

The link you posted is blocked because it’s not https.

 ![](https://global.discourse-cdn.com/freecodecamp/original/3X/f/0/f073253a1d2d4d1593a4b5191edb2d10503b2392.png)

I tried replacing `http` with `https` and it seems to work as well.

---

<div class="post-metadata">

**Author:** ![kundrol](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@kundrol](https://forum.freecodecamp.org/u/kundrol)\
**Post date:** [April 4, 2017, 3:35am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/9 "2017-04-04T03:35:00Z")

</div>

I had this problem. It changed to img-fluid for bootstrap 4. Beats me why they had to change the names. There are several name changes at version 4.

---

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 6:43am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/10 "2017-04-04T06:43:39Z")

</div>

yes, you are right, I need to study to find the point on my browser console first, then I used the bootstrap 3.3.1 link(from FCC lesson) with https，it’s also ok. Whatever, thank you so much!

---

<div class="post-metadata">

**Author:** ![ccrubby214](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ccrubby214/32/112839_2.png) [@ccrubby214](https://forum.freecodecamp.org/u/ccrubby214)\
**Post date:** [April 4, 2017, 6:46am UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/11 "2017-04-04T06:46:25Z")

</div>

It beat me 2~~ I don’t know why they do that, but I used the class you told me and it’s ok, great, now I get two ways to solve this problem, thank you:smiley:

---

<div class="post-metadata">

**Author:** ![lvcoulter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lvcoulter/32/110523_2.png) [@lvcoulter](https://forum.freecodecamp.org/u/lvcoulter)\
**Post date:** [April 16, 2017, 8:42pm UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/12 "2017-04-16T20:42:24Z")

</div>

> [@kevcomedia](#):
>
> [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css)

Thanks so much for posting this! I was completely unable to figure out what I was doing wrong. This link fixed everything. Just wanted you to know how much I appreciated your answering this question so I could someday search and find what I needed. 😃

---

<div class="post-metadata">

**Author:** ![fabioismerim](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/fabioismerim/32/52768_2.png) [@fabioismerim](https://forum.freecodecamp.org/u/fabioismerim)\
**Post date:** [May 19, 2017, 6:10pm UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/13 "2017-05-19T18:10:34Z")

</div>

> [@lvcoulter](#):
>
> [https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css](https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css)

Wooow!! thx!. i just start my Tribute Page and just went through the same problem. This link fixed it 🙂

---

<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 16, 2021, 5:59pm UTC](https://forum.freecodecamp.org/t/build-a-tribute-page-class-img-responsive-useless-by-using-bootstrap-solved/102859/14 "2021-01-16T17:59:39Z")

</div>

Closed on January 16, 2021, 5:59pm UTC


