# How to resize the textboxes and buttons

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766%3E%5C
**Category:** 🔒 Gradio\
**Created:** [November 26, 2022, 6:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766 "2022-11-26T18:12:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohhhh](https://avatars.discourse-cdn.com/v4/letter/o/da6949/32.png) [@ohhhh](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fohhhh)%5C
**Post date:** [November 26, 2022, 6:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766%2F1 "2022-11-26T18:12:20Z")

</div>

hello, I’d like to put a textbox and a button in a row, but they’re the same length, So how can I resize the length of them to make it good-looking. thanks for reply

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffreddyaboulton)%5C
**Post date:** [November 28, 2022, 2:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766%2F2 "2022-11-28T14:02:05Z")

</div>

Does `gr.Button(label="Button").style(full_width=False)` accomplish what you are looking for?

---

<div class="post-metadata">

**Author:** ![ohhhh](https://avatars.discourse-cdn.com/v4/letter/o/da6949/32.png) [@ohhhh](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fohhhh)%5C
**Post date:** [November 28, 2022, 2:32pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766%2F3 "2022-11-28T14:32:59Z")

</div>

thanks for reply! I have tried what you say, but it seems useless, the length of button still the same as textbox. I want to make the length of button is shorter than the textbox. thx again.

---

<div class="post-metadata">

**Author:** ![dwipper](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dwipper/32/21750_2.png) [@dwipper](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdwipper)%5C
**Post date:** [November 17, 2023, 4:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-resize-the-textboxes-and-buttons%2F26766%2F4 "2023-11-17T16:06:39Z")

</div>

> [@freddyaboulton](#):
>
> style(full\_width=False)

I received this error message when trying this: AttributeError: ‘Button’ object has no attribute ‘style’.

Is there another approach in 4.0?
