# Scaling text font size with widgets on the Dashboard

**URL:** <https://forum.inductiveautomation.com/t/scaling-text-font-size-with-widgets-on-the-dashboard/75573>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 27, 2023, 12:23pm UTC](https://forum.inductiveautomation.com/t/scaling-text-font-size-with-widgets-on-the-dashboard/75573 "2023-06-27T12:23:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Monnin-Alle](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@Nicholas\_Monnin-Alle](https://forum.inductiveautomation.com/u/Nicholas_Monnin-Alle)\
**Post date:** [June 27, 2023, 12:23pm UTC](https://forum.inductiveautomation.com/t/scaling-text-font-size-with-widgets-on-the-dashboard/75573/1 "2023-06-27T12:23:23Z")

</div>

I have some widgets that display information through text and would like the text to scale with the widget size. I have tried to use "vw" and "vh" which scales to the full window rather than the widgets, and I have tried some other CSS tricks as well with no avail.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 27, 2023, 1:42pm UTC](https://forum.inductiveautomation.com/t/scaling-text-font-size-with-widgets-on-the-dashboard/75573/2 "2023-06-27T13:42:30Z")

</div>

> [@Scaling Font size based on Container Size](https://forum.inductiveautomation.com/t/scaling-font-size-based-on-container-size/57411/2):
>
> No, there is no css alone that can get you to scale fontsize based on the parents container. There are many js options… but you can’t use those in perspective… There just one thing that might work in perspective, (That i can think of). That is for text to be but in an svg… But getting the text to fit inside it is gonna be a lot of fiddling and not great if its dynamic text. But i suppose with a binding on the viewbox you could set the dimensions based on the elements texts length. [image] […
