# CSS Media Query not working with Ipad device

**URL:** <https://forum.freecodecamp.org/t/css-media-query-not-working-with-ipad-device/305318>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [August 14, 2019, 1:41am UTC](https://forum.freecodecamp.org/t/css-media-query-not-working-with-ipad-device/305318 "2019-08-14T01:41:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![behari97](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@behari97](https://forum.freecodecamp.org/u/behari97)\
**Post date:** [August 14, 2019, 1:41am UTC](https://forum.freecodecamp.org/t/css-media-query-not-working-with-ipad-device/305318/1 "2019-08-14T01:41:51Z")

</div>

I am trying to create some text that would show on Mobile Devices with **415px** some text and on Ipad **768px** it would show a different text. And the problem is that the text of iPhone it shows on Ipad too and the Ipad text it doesn’t show at all and I need some help so I can show on Ipad Device the text I have created and on iPhone Device it would show the iPhone text, because I’ve been struggling with this for long and still wasn’t able how to fix this. Thank you.  
[https://codepen.io/beh4r/full/vYBLaoV](https://codepen.io/beh4r/full/vYBLaoV)

---

<div class="post-metadata">

**Author:** ![leebut](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/leebut/32/10914_2.png) [@leebut](https://forum.freecodecamp.org/u/leebut)\
**Post date:** [August 14, 2019, 4:44am UTC](https://forum.freecodecamp.org/t/css-media-query-not-working-with-ipad-device/305318/2 "2019-08-14T04:44:59Z")

</div>

Your mobile text and button needs to not display initially, but your ipad text and button do. It looks like you have `display: none` initially set on the wrong elements.

---

<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:** [March 9, 2021, 11:27am UTC](https://forum.freecodecamp.org/t/css-media-query-not-working-with-ipad-device/305318/3 "2021-03-09T11:27:19Z")

</div>

Closed on March 9, 2021, 11:27am UTC


