# Can anyone tell me why this code isn't working?

**URL:** <https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720>\
**Category:** General\
**Created:** [January 24, 2019, 7:10am UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720 "2019-01-24T07:10:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![east](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/east/32/109753_2.png) [@east](https://forum.freecodecamp.org/u/east)\
**Post date:** [January 24, 2019, 7:10am UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/1 "2019-01-24T07:10:18Z")

</div>

The instructions are:  
“Add a media query, so that the `p` tag has a `font-size` of 10px when the device’s height is less than or equal to 800px.”

I’ve come up with the following code:  
@media (max-height: 800px){  
p {  
font-size: 10px;  
}  
}

This seems to be the solution that most people have come up with, but FCC isn’t accepting it. What am I doing wrong?

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/4/a/4a479dc2beea7f8a33a65f0bfc55cd7fe07dfde0.png)

---

<div class="post-metadata">

**Author:** ![Layer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/layer/32/82898_2.png) [@Layer](https://forum.freecodecamp.org/u/Layer)\
**Post date:** [January 24, 2019, 7:38am UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/2 "2019-01-24T07:38:12Z")

</div>

I copy-pasted your code and works fine to me^^  
Have you tried to use another browser?

P.S.  
To include the link of the challenge improve the chances you get help^^

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [January 24, 2019, 5:00pm UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/3 "2019-01-24T17:00:58Z")

</div>

Are you by any chance using Edge, IE, or Safari as your browser? Free Code Camp has been updated to use newer technologies. It makes the application much faster and it means that we can go much longer without having to do a huge migration like the recent one. However, Edge, Internet Explorer, and Safari are very bad about choosing not to adhere to standards and support new functionality in JS and CSS. Right now, that means that these browsers exhibit lots of unexpected behavior. If you become a web developer you will come to hate these browsers with every fiber of your being.

---

<div class="post-metadata">

**Author:** ![east](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/east/32/109753_2.png) [@east](https://forum.freecodecamp.org/u/east)\
**Post date:** [January 24, 2019, 9:27pm UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/4 "2019-01-24T21:27:37Z")

</div>

I actually use Opera right now. I already hate those browsers don’t worry lmao. I’ll try Firefox or Chrome for this set of challenges and see if it works, thanks!

---

<div class="post-metadata">

**Author:** ![east](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/east/32/109753_2.png) [@east](https://forum.freecodecamp.org/u/east)\
**Post date:** [January 24, 2019, 9:31pm UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/5 "2019-01-24T21:31:15Z")

</div>

I was using Opera and I just tried it in Firefox and it worked. Thanks a lot!!

P.S. Thanks for that tip 😌

---

<div class="post-metadata">

**Author:** ![psyperl](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/psyperl/32/108474_2.png) [@psyperl](https://forum.freecodecamp.org/u/psyperl)\
**Post date:** [January 25, 2019, 6:49am UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/6 "2019-01-25T06:49:05Z")

</div>

So it seems that the technology that is being used doesn’t work in Edge, IE, Safari and Opera… maybe the lesson that we’ve learnt is to avoid using a tech that only works only in one browser ? 😃

---

<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, 6:43pm UTC](https://forum.freecodecamp.org/t/can-anyone-tell-me-why-this-code-isnt-working/253720/7 "2021-01-16T18:43:10Z")

</div>


