# First project, tribute page. Img help for user story 8 and 9

**URL:** <https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805>\
**Category:** I Built This\
**Created:** [December 29, 2020, 3:07pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805 "2020-12-29T15:07:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaMeanDude](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dameandude/32/195054_2.png) [@DaMeanDude](https://forum.freecodecamp.org/u/DaMeanDude)\
**Post date:** [December 29, 2020, 3:07pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/1 "2020-12-29T15:07:36Z")

</div>

I really just don’t understand, think I’ll just have to do the entire first bit of walk-throughs again. I’ve googled and googled images of code to try and understand what to do/ what I’m doing wrong. I’ve gotten to the point of random copy and paste from other’s solutions. I don’t know, I just don’t know. Seeing other people’s solutions after figuring it out or getting help and going “Oh! Now I see it!” is making it even more frustrating because I just don’t see it at all.

[https://codepen.io/dameandude/pen/rNMpPxy](https://codepen.io/dameandude/pen/rNMpPxy)

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 29, 2020, 4:08pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/2 "2020-12-29T16:08:02Z")

</div>

OK, with regards to the first test that is failing, you made a very understandable mistake, you put:

```auto
<style>
#image {display:block;
       max-width: 100%;
       height:auto;}

</style>

```

In the CSS pane of your pen. You don’t need those `style` tags - those would be if you were embedding it in HTML. But this is codepen, a kind of magical world where you don’t have to do that. If you remove that, the test passes.

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 29, 2020, 4:11pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/3 "2020-12-29T16:11:13Z")

</div>

With regards to centering, there are a few different ways but one easy way is to control the margin. For example, if I put:

```auto
  margin: 0 auto;

```

When there are two values given, the first one controls the vertical, the second the horizontal. So, we are telling to give no vertical margin and for the horizontal, to do “auto”, automatically calculate what it would need to be to center it.

When I make this change and the previous one, it passes.

---

<div class="post-metadata">

**Author:** ![Brijesh](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brijesh/32/134236_2.png) [@Brijesh](https://forum.freecodecamp.org/u/Brijesh)\
**Post date:** [December 29, 2020, 4:44pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/4 "2020-12-29T16:44:31Z")

</div>

```auto
img-div{
 text-align: center;
}
#image {
 display:block;
 max-width: 100%;
 height:auto;
 margin:0 auto;
}

```

This passed all the tests for me, try the same, and by the way, you need not use the `<style> and </style>` tags over here because in this case the html and css sections are seperate, you have to use the style tag if you want to ignore the CSS Section once and for all and include the css in your html section.

---

<div class="post-metadata">

**Author:** ![DaMeanDude](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dameandude/32/195054_2.png) [@DaMeanDude](https://forum.freecodecamp.org/u/DaMeanDude)\
**Post date:** [December 29, 2020, 7:43pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/5 "2020-12-29T19:43:33Z")

</div>

Life. Saver. I tried so much, and was just…defeated! Haha over something so dumb! Thank you thank you!

---

<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, 1:07pm UTC](https://forum.freecodecamp.org/t/first-project-tribute-page-img-help-for-user-story-8-and-9/437805/6 "2021-06-01T13:07:16Z")

</div>

Closed on June 1, 2021, 1:07pm UTC


