# Portfolio Image Height

**URL:** <https://forum.freecodecamp.org/t/portfolio-image-height/412542>\
**Category:** General\
**Created:** [July 29, 2020, 8:16pm UTC](https://forum.freecodecamp.org/t/portfolio-image-height/412542 "2020-07-29T20:16:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Layooo](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/layooo/32/140297_2.png) [@Layooo](https://forum.freecodecamp.org/u/Layooo)\
**Post date:** [July 29, 2020, 8:16pm UTC](https://forum.freecodecamp.org/t/portfolio-image-height/412542/1 "2020-07-29T20:16:51Z")

</div>

I looked through the code by FCC [here](https://codepen.io/freeCodeCamp/pen/zNBOYG) and was a bit confused about line 422 in the css section.

Any ideas how the height of each image in the grid container was gotten? What is the 100% relative to?

---

<div class="post-metadata">

**Author:** ![codely](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/codely/32/184577_2.png) [@codely](https://forum.freecodecamp.org/u/codely)\
**Post date:** [October 27, 2020, 4:17pm UTC](https://forum.freecodecamp.org/t/portfolio-image-height/412542/2 "2020-10-27T16:17:51Z")

</div>

There is no 422 line in css section  
only upto 322 is there

---

<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:37pm UTC](https://forum.freecodecamp.org/t/portfolio-image-height/412542/3 "2021-06-01T18:37:07Z")

</div>

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


