# Change hero image height?

**URL:** <https://community.hubspot.com/t/change-hero-image-height/32792>\
**Category:** CMS Development\
**Created:** [March 7, 2021, 10:05pm UTC](https://community.hubspot.com/t/change-hero-image-height/32792 "2021-03-07T22:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magronin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/magronin/32/14279_2.png) [@magronin](https://community.hubspot.com/u/magronin)\
**Post date:** [March 7, 2021, 10:05pm UTC](https://community.hubspot.com/t/change-hero-image-height/32792/1 "2021-03-07T22:05:45Z")

</div>

I have a website template built by HubSpot’s devs when we originally launched and the hero graphic box is too large. We have it set so that it’s responsive and on mobile the box gets smaller with custom HTML code on the template but the issue is still desktop (max-height is 750px and it should be changed to 450px).

Anyone know of how to edit the HTML header override code to reduce max-height on desktop from 750px to 450px?

**Site:** [Finserv Whitepaper: Deliver Great Customer Experiences at Any Size](https://go.ubiquity.com/finserv-whitepaper)

**Current HTML code on template:**

\<style\>

[@media](https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477) only screen and (max-width: 800px) {  
.custom-banner-area {  
width:100% !important;  
height: 250px !important;  
}  
.custom-banner-wrapper {  
height: 250px !important;  
padding-top: 40px !important;  
}  
.body-container-wrapper {  
margin-top: -100px !important;  
}  
}

\</style\>

---

<div class="post-metadata">

**Author:** ![Pixl\_Labs](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pixl_labs/32/79613_2.png) [@Pixl\_Labs](https://community.hubspot.com/u/Pixl_Labs)\
**Post date:** [March 8, 2021, 3:43am UTC](https://community.hubspot.com/t/change-hero-image-height/32792/2 "2021-03-08T03:43:51Z")

</div>

The max height on your hero is set to 350px on Desktop. Where are you seeing it’s set to 750px?

```lia-code-sample
.custom-banner-wrapper {
 -ms-flex-align: center;
 align-items: center;
 display: -ms-flexbox;
 display: flex;
 height: 100vh;
 margin: 0 0 100px !important;
 max-height: 350px;
 overflow: hidden;
 padding: 0 0 65px 0;
 position: relative;
}

```

**Joshua Todd |** _CEO of Pixl Labs_  
[www.pixllabs.io](https://pixllabs.io/)

 ![49533iE7C552EF712EC0B5.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/9/9ff38d7b8dffef967efe93797bf48b086c22b332.png)
