# Odd media query styling?

**URL:** <https://community.hubspot.com/t/odd-media-query-styling/10898>\
**Category:** CMS Development\
**Created:** [November 12, 2018, 5:43pm UTC](https://community.hubspot.com/t/odd-media-query-styling/10898 "2018-11-12T17:43:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stevie-Kv](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevie-kv/32/97206_2.png) [@Stevie-Kv](https://community.hubspot.com/u/Stevie-Kv)\
**Post date:** [November 12, 2018, 5:43pm UTC](https://community.hubspot.com/t/odd-media-query-styling/10898/1 "2018-11-12T17:43:31Z")

</div>

Hey all

I’m just going through the process of designing our new blog website, using the PSDtoHubspot template on the marketplace. I have moved our header global module group over to the blog template and did my best at bringing over the styles/classes too which has been pretty successful. I just seem to be having an issue with a media query.

If you take a look at one of our regular LP templates with a width under 768px you can see the header and logo shrinks down fine.

Now compare it to our new blog template with the same header (again viewing it under 768px) [blog.hawktraining.com](http://blog.hawktraining.com). You can see it leaves a while space below the icons and the logo looks odd.

 ![Capture.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/1/91ab981c9f5a2eb5da7a8cd3ebd886eca307b7dd.png)

Unchecking padding: 15px; under .header-container .hs\_cos\_wrapper\_type\_logo seems to resolve the issue.

I would expect using the following would work fine but it does not (I have tried using !important as well to no avail)

```auto
@media (min-width: 768px) {
 .header-container .hs_cos_wrapper_type_logo {
 padding: 0;
 }
}

```

I can also see existing media queries which would contradict what I am trying to do so I am at a bit of a loss.

```auto
@media (min-width: 768px) {
 .header-container .hs_cos_wrapper_type_logo {
 padding: 10px 15px;
 }
 .header-container .hs_cos_wrapper_type_logo a img {
 height: 50px;
 }
 .header-container.sticky .hs_cos_wrapper_type_logo a img {
 height: 50px;
 }
}

```

If anyone could help me work out this last little bit I would be very grateful!  
 ![16x16_smiley-happy.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)

Steve

---

<div class="post-metadata">

**Author:** ![Adesignl](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adesignl/32/27362_2.png) [@Adesignl](https://community.hubspot.com/u/Adesignl)\
**Post date:** [November 12, 2018, 7:57pm UTC](https://community.hubspot.com/t/odd-media-query-styling/10898/2 "2018-11-12T19:57:07Z")

</div>

Are you still in need of help?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 12, 2018, 8:01pm UTC](https://community.hubspot.com/t/odd-media-query-styling/10898/3 "2018-11-12T20:01:46Z")

</div>

@Stevie-Kv

change min to max and set it to 767px

```auto
@media (max-width: 767px) {
 .header-container .hs_cos_wrapper_type_logo {
 padding: 0;
 }
}

```

---

<div class="post-metadata">

**Author:** ![Stevie-Kv](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevie-kv/32/97206_2.png) [@Stevie-Kv](https://community.hubspot.com/u/Stevie-Kv)\
**Post date:** [November 14, 2018, 9:29am UTC](https://community.hubspot.com/t/odd-media-query-styling/10898/4 "2018-11-14T09:29:24Z")

</div>

@dennisedson

You know…I had tried this before and must have missed a bracket or something as the results were vastly different!

Copied and pasted over from your post instead and it worked out.

Now I just feel silly, thanks for the help!  
 ![16x16_smiley-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)

Steve
