# Conditional Styling - Height and Width properties

**URL:** <https://community.appfarm.io/t/conditional-styling-height-and-width-properties/276>\
**Category:** Bug reports\
**Tags:** ui\
**Created:** [February 17, 2023, 2:09pm UTC](https://community.appfarm.io/t/conditional-styling-height-and-width-properties/276 "2023-02-17T14:09:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/jonas/32/17_2.png) [@Jonas](https://community.appfarm.io/u/Jonas)\
**Post date:** [February 17, 2023, 2:09pm UTC](https://community.appfarm.io/t/conditional-styling-height-and-width-properties/276/1 "2023-02-17T14:09:51Z")

</div>

I would expect to have the same freedom of defining height and width through conditional styling as for the styling, but I can only hardcode a height here, not use data binding or functions. Copying other functions just ignores the new styling.

Also, I notice that if I have created a function for the height, the conditional style will not override.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/8e601583af67fdd9e3c354f2d586c2d02707181b.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/58241e6d1091c380272888c9d4c7b94ea7273cce.png)

---

<div class="post-metadata">

**Author:** ![Joanna](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/joanna/32/122_2.png) [@Joanna](https://community.appfarm.io/u/Joanna)\
**Post date:** [February 20, 2023, 8:39am UTC](https://community.appfarm.io/t/conditional-styling-height-and-width-properties/276/2 "2023-02-20T08:39:23Z")

</div>

Hi, thank you for bringing this up, I’ll register a challenge 👌
