# Responsive test #1

**URL:** <https://forum.freecodecamp.org/t/responsive-test-1/410512>\
**Category:** General\
**Created:** [July 19, 2020, 7:19am UTC](https://forum.freecodecamp.org/t/responsive-test-1/410512 "2020-07-19T07:19:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nix](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nix/32/170717_2.png) [@nix](https://forum.freecodecamp.org/u/nix)\
**Post date:** [July 19, 2020, 7:19am UTC](https://forum.freecodecamp.org/t/responsive-test-1/410512/1 "2020-07-19T07:19:24Z")

</div>

Hello. I am solving the first project of responsive design course. This is my solution:

> **[MWKzBjX](https://codepen.io/nix-star/pen/MWKzBjX)**
>
> ...

Everytime I do the test it fails about the responsiveness of the image, but when I change the size of the window the image also change. I wrote this in the css file:

img {  
max-width: 100%;  
}

I want to ask if I must be worried from anything else when I am trying to make an image responsive.

Regards

---

<div class="post-metadata">

**Author:** ![geraldombuthia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/geraldombuthia/32/132306_2.png) [@geraldombuthia](https://forum.freecodecamp.org/u/geraldombuthia)\
**Post date:** [July 19, 2020, 1:49pm UTC](https://forum.freecodecamp.org/t/responsive-test-1/410512/2 "2020-07-19T13:49:43Z")

</div>

Hello there,  
I have taken a look at your code. Adding max-width:100% allows the image to increase and decrease according to the size of the viewport with the maximum width being its original width size. There are a host of other ways but this fits perfectly in the given project.However the reason you are failing is because the test requires you to pass another css style, but doesnt mention it, by passing display:block to your image which apparently gets rid of the white spaces.  
Kindly note that images have the (display: inline;) property by default except for some few circumstances.

Also the center tags are incorrectly placed, where the closing tag is within the figcaption tag, set it correctly and you have 9 marks out of 10.

---

<div class="post-metadata">

**Author:** ![nix](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nix/32/170717_2.png) [@nix](https://forum.freecodecamp.org/u/nix)\
**Post date:** [July 25, 2020, 3:44pm UTC](https://forum.freecodecamp.org/t/responsive-test-1/410512/3 "2020-07-25T15:44:36Z")

</div>

Solved! Thanks you very much!

---

<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:45pm UTC](https://forum.freecodecamp.org/t/responsive-test-1/410512/4 "2021-06-01T18:45:29Z")

</div>

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


