About UI controls

Hi team Anvil,

I would like to know if we can modify the size of the various controls like a text box in a form, button size, etc while building an app? I was working on an app & couldn’t really reduce the size of the form container. Thanks.

Basically, that sort of thing is customized by CSS. Look up Anvil “roles” for a way to do that that integrates with the IDE, the Anvil design view. Or search the forum for some alternatives, such as using Anvil’s javascript integration (“anvil.js”) to edit HTML attributes.

We were able to achieve this by initializing the width property of the field in the init method

1 Like

Thanks, we were able to resolve this. This approach works