# Media query for responsive columns

**URL:** <https://community.hubspot.com/t/media-query-for-responsive-columns/19190>\
**Category:** CMS Development\
**Tags:** css\
**Created:** [March 4, 2020, 6:43am UTC](https://community.hubspot.com/t/media-query-for-responsive-columns/19190 "2020-03-04T06:43:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DanielSanchez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danielsanchez/32/48193_2.png) [@DanielSanchez](https://community.hubspot.com/u/DanielSanchez)\
**Post date:** [March 4, 2020, 12:32pm UTC](https://community.hubspot.com/t/media-query-for-responsive-columns/19190/2 "2020-03-04T12:32:40Z")

</div>

Hi @Ckleming

Congratulations on finalizing the certificate. This training is very good!

Look how use media query:

**HTML**

```auto
<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>
<div class="my-column">
 Content here
</div>

```

**CSS**

```auto
.my-column{ 
 width:25%;
}

@media (max-width:900px){
 .my-column{
 width:50%;
 }
}

```

in this example I ignored all the other CSS formatting, to show only the responsiveness of the media query.

**Did this post help solve your problem? If so, please mark it as a solution.**

Best regards!

---

_[View the full topic](https://community.hubspot.com/t/media-query-for-responsive-columns/19190)._
