---
title: "height"
description: "Sets the absolute height of an element, in [Dp]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun GlanceModifier.height(height: Dp): GlanceModifier
```


Sets the absolute height of an element, in `Dp`.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun GlanceModifier.height(@DimenRes height: Int): GlanceModifier
```


Set the height of the view from a resource.



