# How do I write a media query for this?(with an example)

**URL:** <https://community.hubspot.com/t/how-do-i-write-a-media-query-for-this-with-an-example/70962>\
**Category:** CMS Development\
**Tags:** starter\
**Created:** [December 10, 2022, 4:40pm UTC](https://community.hubspot.com/t/how-do-i-write-a-media-query-for-this-with-an-example/70962 "2022-12-10T16:40:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DOchieng5](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@DOchieng5](https://community.hubspot.com/u/DOchieng5)\
**Post date:** [December 10, 2022, 4:40pm UTC](https://community.hubspot.com/t/how-do-i-write-a-media-query-for-this-with-an-example/70962/1 "2022-12-10T16:40:03Z")

</div>

![Screenshot_20221210-092305_Chrome.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/6/f6884606377b713ecaaeae9a78a0f80c85ebfc42.jpeg)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 12, 2022, 5:07pm UTC](https://community.hubspot.com/t/how-do-i-write-a-media-query-for-this-with-an-example/70962/2 "2022-12-12T17:07:55Z")

</div>

Hi, @DOchieng5 👋 Thanks for reaching out. I’d suggest starting here:

- [Media queries – MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries)
- [Media queries – W3 Schools](https://www.w3schools.com/css/css3_mediaqueries.asp)
- [Media queries – CSS Tricks](https://css-tricks.com/a-complete-guide-to-css-media-queries/)

If you post the CSS you’ve already tried here as a reply, the community may be able to help guide you on how to fix or improve your CSS.

Have fun building! — Jaycee
