# 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:** 1\
**Showing post:** 2

<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] […

---

_[View the full topic](https://forum.inductiveautomation.com/t/scaling-text-font-size-with-widgets-on-the-dashboard/75573)._
