# Help me with Tribute Page

**URL:** <https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724>\
**Category:** General\
**Created:** [April 29, 2020, 6:24am UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724 "2020-04-29T06:24:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![razawat](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/razawat/32/145510_2.png) [@razawat](https://forum.freecodecamp.org/u/razawat)\
**Post date:** [April 29, 2020, 6:24am UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/1 "2020-04-29T06:24:22Z")

</div>

I am getting 9/10 on checking, please me out in finding that one mistake…

[https://codepen.io/razawat/pen/qBOjKQJ](https://codepen.io/razawat/pen/qBOjKQJ)

---

<div class="post-metadata">

**Author:** ![Naomi](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/naomi/32/422181_2.png) [@Naomi](https://forum.freecodecamp.org/u/Naomi)\
**Post date:** [April 29, 2020, 6:27am UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/2 "2020-04-29T06:27:36Z")

</div>

Hello!

It looks like your img properties in your CSS don’t define a max width. Try setting your “width” and “height” to “max-width” and “max-height”.

This will keep your image looking the same for you, but would shrink it down if I loaded your page on my mobile phone.

---

<div class="post-metadata">

**Author:** ![razawat](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/razawat/32/145510_2.png) [@razawat](https://forum.freecodecamp.org/u/razawat)\
**Post date:** [April 29, 2020, 12:56pm UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/3 "2020-04-29T12:56:51Z")

</div>

it’s still 9/10…

---

<div class="post-metadata">

**Author:** ![joebradford](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@joebradford](https://forum.freecodecamp.org/u/joebradford)\
**Post date:** [April 29, 2020, 2:01pm UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/4 "2020-04-29T14:01:55Z")

</div>

Hi, i was stuck at this point too. Im pretty new to this but managed to pass the test by making the image container a flexbox by using:

#img-div{  
background-color: white;  
display: flex;  
flex-direction: column;

and then assigning the info in the responsive image tutorial to the image:

#image{  
align-item: center;  
max-width: 100%;  
height: auto;

I hope this helps… if anyone who is more experienced can point out flaws i would be grateful! I dont want to be providing the incorrect info

---

<div class="post-metadata">

**Author:** ![nibble](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nibble/32/123681_2.png) [@nibble](https://forum.freecodecamp.org/u/nibble)\
**Post date:** [April 29, 2020, 2:11pm UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/5 "2020-04-29T14:11:30Z")

</div>

The image is an inline element. Make it `display: block`. For it to resize with the container make the `width: 100%`, `height: auto` . To center it use `margin: 0 auto`.

```auto
img{
    display: block;
	height: auto;
	width: 100%;
    margin: 0 auto;
 }

```

Remove the rest of the styling on the `img` element. Happy Coding!

---

<div class="post-metadata">

**Author:** ![ejsalga2007](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ejsalga2007/32/134455_2.png) [@ejsalga2007](https://forum.freecodecamp.org/u/ejsalga2007)\
**Post date:** [June 8, 2020, 4:31am UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/6 "2020-06-08T04:31:37Z")

</div>

@nibble Here is my original code that didn’t work:

```auto
.image{
    max-width: 100%;
    height: auto;
    display: block;
}

```

In another thread I found this code:

```auto
#image{
      width: 100%;
      height: auto;
      max-width: 750px;
      margin-left: auto;
      margin-right: auto;
      display: block; 
}

```

The code worked and the tests gave me 10/10 but, I don’t know why. I can see the difference in the code but, I don’t know what those differences mean.

I was trying to figure it out when I found your code. It’s cleaner, simpler and it works perfectly. However, the test gave me 9/10.

Can you help me understand the difference? Or, can you point me somewhere where I can figure this out?

Any help is appreciated  
My codepen: [https://codepen.io/ej-salga/pen/zYvbodX](https://codepen.io/ej-salga/pen/zYvbodX)

---

<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:** [June 1, 2021, 6:51pm UTC](https://forum.freecodecamp.org/t/help-me-with-tribute-page/380724/7 "2021-06-01T18:51:12Z")

</div>

Closed on June 1, 2021, 6:51pm UTC


