# Responsive HTML Custom Block

**URL:** <https://forums.losant.com/t/responsive-html-custom-block/2955>\
**Category:** Help\
**Tags:** dashboard\
**Created:** [May 19, 2020, 1:43pm UTC](https://forums.losant.com/t/responsive-html-custom-block/2955 "2020-05-19T13:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasbtsuchiya](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/lucasbtsuchiya/32/2621_2.png) [@lucasbtsuchiya](https://forums.losant.com/u/lucasbtsuchiya)\
**Post date:** [May 19, 2020, 1:43pm UTC](https://forums.losant.com/t/responsive-html-custom-block/2955/1 "2020-05-19T13:43:32Z")

</div>

Is there any way to configure the custom html dashboard so that the resolution is dynamic, according to the block size?

The Custom Chart block uses:

“width”: {{block.width}},  
“height”: {{block.height}},  
“autosize”: {“type”: “none”, “contains”: “padding”}

Would it be possible to do something similar in the custom html block?

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [May 19, 2020, 2:19pm UTC](https://forums.losant.com/t/responsive-html-custom-block/2955/4 "2020-05-19T14:19:28Z")

</div>

@lucasbtsuchiya,

This is a great question, but there is no easy answer because it depends on the content of your block. The answer is [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). You’ll need to use CSS to control the layout of your block content.

For simple HTML\CSS, the answer can be as easy as using `width: 100%`.

For more complex visualizations using a library (like using [Chart.js](https://docs.losant.com/dashboards/custom-html/#using-chartjs)), the library itself will provide [responsive](https://www.chartjs.org/docs/latest/general/responsive.html) instructions. Or, Google may have the answer as people may have run into the same question of “How do I make X responsive”?

Let me know if you have any questions 🙂
