# Adjusting Banner Heights

**URL:** <https://community.hubspot.com/t/adjusting-banner-heights/115074>\
**Category:** CMS Development\
**Tags:** css\
**Created:** [August 22, 2024, 8:39pm UTC](https://community.hubspot.com/t/adjusting-banner-heights/115074 "2024-08-22T20:39:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CSparanese](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@CSparanese](https://community.hubspot.com/u/CSparanese)\
**Post date:** [August 22, 2024, 8:39pm UTC](https://community.hubspot.com/t/adjusting-banner-heights/115074/1 "2024-08-22T20:39:26Z")

</div>

Using a banner slider from the Quest website theme, how would I go about having full control over the banner height? Under module settings I’m able to see two options for banner height - normal and full height, however I’d like to have more flexibility over this aspect of the element.

Is there an easy CSS class selector or DC selector I can implement?

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [August 23, 2024, 2:49am UTC](https://community.hubspot.com/t/adjusting-banner-heights/115074/2 "2024-08-23T02:49:43Z")

</div>

Hi @CSparanese,

Would you mind sharing the page URL and screenshot of the banner?

Best regards,

**Abraham Ernesto**

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 23, 2024, 8:10am UTC](https://community.hubspot.com/t/adjusting-banner-heights/115074/3 "2024-08-23T08:10:35Z")

</div>

Hi @CSparanese,

if the module is editable in the design-manager you can search for the banner-height option, add a new select to it like “custom” and a number-field(“custom height”) and put this code into the module.html area

```lia-code-sample
{% if module.styles.banner_height = "custom" %}
{% require_css %}
<style>
{% scope_css %}
.banner{
min-height: {{ module.styles.custom_height }}%;
}
{% end_scope_css %}
</style>
{% end_require_css %}

```

This might not work since the classes might not match but it should give you an idea how to accomplish this.  
Another good practise can be to add a text-field(not rich-text) to the module, call it “custom class” and write the code like this:

```lia-code-sample
<div class="hero {{module.custom_class}}">
...
</div>

```

Once this is done you can open your theme-overrides.css and put your custom class in like this:

```lia-code-sample
.myClass{
 min-height: 66%; {# change this to anything you like #}
}

```

So everytime you’ll be putting “myClass” into the text-field it will be applied

best,

Anton

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [August 23, 2024, 3:28pm UTC](https://community.hubspot.com/t/adjusting-banner-heights/115074/4 "2024-08-23T15:28:26Z")

</div>

Quest is a marketplace theme so the module won’t be immediately editable. You will need to [create a child theme,](https://knowledge.hubspot.com/website-pages/use-themes#:~:text=Right%20click%20a%20theme%20folder%2C%20then%20select%20Create%20child%20theme,a%20folder%2C%20then%20click%20Select.) copy the module over and create the custom fields per Anton’s instructions.  
You’re also probably going to want to set a different height for mobile than for desktop, so maybe set up a second field for that and use a media query in your css.

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)
