# WebButton height other than default height

**URL:** <https://forum.xojo.com/t/webbutton-height-other-than-default-height/66672>\
**Category:** Web\
**Created:** [November 13, 2021, 5:36pm UTC](https://forum.xojo.com/t/webbutton-height-other-than-default-height/66672 "2021-11-13T17:36:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AlbertoD](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@AlbertoD](https://forum.xojo.com/u/AlbertoD)\
**Post date:** [November 13, 2021, 6:28pm UTC](https://forum.xojo.com/t/webbutton-height-other-than-default-height/66672/3 "2021-11-13T18:28:08Z")

</div>

Here is an option with JavaScript:

> [@Webbutton vertical height](https://forum.xojo.com/t/webbutton-vertical-height/61806/2):
>
> In button.Shown: ExecuteJavaScript( "$('#" + me.ControlID + " .btn-group').css('height','100%');" )

Here is an option changing the CSS:

> [@Scaling Web Buttons height](https://forum.xojo.com/t/scaling-web-buttons-height/60152/3):
>
> I wrote [this](https://forum.xojo.com/t/button-changes-css-tips/54138) a few months ago. If you only need the height change you only need .btn-group { height: 100%!important; } Adding the width directive will make the button work like default Bootstrap buttons (and need the align center too), in other words the width will be set depending in the shown text. For example: IDE [image] Web [image] I prefer to have buttons with same width accross the page, so just height is changed: \<style\> .btn-group { height: 100%!important; } \</style\> [image] B…

basically add to HTMLheader

```auto
<style>
.btn-group { height: 100%!important; }
</style>

```

Yes, it is “by design” so we need to find ways around that to satisfy client needs.

Edit: I posted some tips here [Button changes - CSS tips](https://forum.xojo.com/t/button-changes-css-tips/54138)

---

_[View the full topic](https://forum.xojo.com/t/webbutton-height-other-than-default-height/66672)._
