# Common Style Properties of Web Controls

Web Controls can be personalized using the Style Properties in the **General** tab of the Inspector section. Even if some Web Controls have unique **Style Properties**, most of them share the following:

## Layout

### Position

**Relative** - Places an element relative to its current position without changing the layout around it.

**Absolute** - Places an element relative to its parent’s position and changes the layout around it. When this position is used, the **Pin to Edge** options are displayed to adjust the Web Control in the desired quadrant.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-1f60859cb80c02cf79764c6be572e4326a13af64%2Fcommon-style-properties-of-web-controls-v180-0.png?alt=media)

### Distribute Children

_Available for Container-type Web Controls such as Simple Cell and File Upload_

\*\* 1. Distribution Box\*\* - Shows how children Controls are distributed by default and allows you to quickly change their position as a block within the Container.

\*\* 2. Stack Horizontal\*\* - Aligns all children Web Controls horizontally.

\*\* 3. Stack Vertical\*\* - Aligns all children Web Controls vertically.

\*\* 4. Wrap\*\* - Specifies whether all children Web Controls should be wrapped inside the Parent or not.

\*\* 5. Spacing Children\*\* - Configures how much space is taken around each child Web Control. Possible choices are to provide a Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string with a valid size.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-27453e431e55a0098ca15bc851571deb0378385c%2Fcommon-style-properties-of-web-controls-v180-1.png?alt=media)

### Spacing

**Margin** - Configures how much space is taken around the outside of the Control's bounding box.

**Padding** - Configures how much space is taken around the inside of the Control's bounding box.

In both cases, spacing on the top, bottom, left, and right can be configured separately. Possible choices are to provide a Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string with a valid size.

## Override Styles

### Dimensions

**Height** - Configures the vertical size of the Control's bounding box.

**Width** - Configures the horizonal size of the Control's bounding box.

In both cases, the value **auto** will cause the Control to take up enough space to accommodate the displayed content. Possible choices are to provide a Size or Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string that is a valid size.

**Clip Content** - Configures how the content is displayed when it would take more space than is available within the Control's bounding box. By default, the content will be scrollable within the bounding box. However, if this property is enabled, the content will be clipped to the Control's bounding box.

### Font

Configures the font of the text on the Web Control. Possible choices are to use a Theme Variable, to select one from the available fonts, to use a [custom font](../../styling/working-with-custom-fonts) by uploading a font file, or to provide an Airscript Expression. If providing an Airscript Expression, it must result in a string that identifies a font, and cannot reference any Variable.

Once the font is decided, you can show the text as bold or regular, choose the color, and alignment and whether it will be underlined or in italics.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-8964dfb62de64f94c54e352e34c8e35068232977%2Fcommon-style-properties-of-web-controls-v180-2.png?alt=media)

### Background

Configures the color of the background of the Control's bounding box. Possible choices are to use a Theme Variable, to use the Color Picker, to provide an Airscript Expression, or to use an uploaded Asset. If providing an Airscript Expression, it must result in a string that identifies a Color, and cannot reference any Variable. When choosing to use an uploaded Asset, its position, size, and repeatability are also configurable.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-bd9d16a5588e9617bfc4b082ea8b51a974e66f3e%2Fcommon-style-properties-of-web-controls-v180-3.png?alt=media)

### Border

**Border Stroke Style** - Configures how the border around the Control is displayed. Possible options are "none", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", or "outset".

**Border Color** - Configures the color of the border around the Control bounding box. Possible choices are to provide a Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string with a valid size and may not reference any Variables.

**Border Width** - Configures the width of the border stroke around the Control's bounding box. Possible choices are to provide a Theme Variable, or an Airscript Expression.

**Border Sides** - Configures which sides of the border should be displayed. The visibility of the top, left, right, and bottom sides can be configured separately.

### Rounded Corners

**Corner Radius** - Configures whether the corners of the bounds of the Control are rounded. This setting is typically only useful if either the Background Color or Border Color of the Control are visible against the parent Control. Possible choices are to provide a Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string with a valid size.

**Rounded Corners** - Configures which of the Control's bounds corners are rounded and which ones are not.

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-11f9eb546b2ae11750d84801c13f1b77cb7b842d%2Fcommon-style-properties-of-web-controls-v180-4.png?alt=media)

### Shadow

**Shadow Horizontal Offset** - Configures the distance that the shadow is offset from the Control's bounds in the horizontal direction. The value can be positive or be negative.

**Shadow Vertical Offset** - Configures the distance that the shadow is offset from the Control's bounds in the vertical direction,. The value can be positive or be negative.

**Shadow Blur Radius** - Configures how blurred the shadow of the Control's bounding box is.

**Shadow Color**- Configures the color of the shadow of the Control's bounding box.

**Shadow Spread Radius** - Configures the size of the shadow of the Control's bounding box. A value of zero causes the size of the shadow to be the same as that of the Control's bounding box, while a positive value will increase the size, and a negative value will decrease the size.

In all cases, possible choices are to provide a Theme Variable, or an Airscript Expression. If providing an Airscript Expression, it must result in a string with a valid size.

**Shadow Inset** - Configures whether the shadow of the Control's bounding box is displayed on the outside and blurred out `FALSE`, or on the inside and blurred in `TRUE`.

## Animations

Enable Web Controls to transition from one Variant state to another.

This property only displays for Web Controls that have multiple states. For example, the button control has the following states:

* Default - When first rendered without state
* Pressed - when the control is being pressed
* Disabled - When the control is disabled
* Focused - when the control is focused

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-4cc3e4d091dc3186efe5b975074cce4224da29ce%2Fcommon-style-properties-of-web-controls-v180-5.png?alt=media)

\##Transitions

These are the characteristics that can be animated in Web Controls when transitioning between different states:

* Margin
* Padding
* Dimensions
* Font
* Background
* Border
* Rounded Corners
* Shadow

These are the options for the transitioning speed:

* timingQuick
* timingMedium
* timingSlow

![](https://2093598723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2DgLBPTrwoEhWaU24LL%2Fuploads%2Fgit-blob-e82bcea62d761c08dd8eeae94dd9499aec998a47%2Fcommon-style-properties-of-web-controls-v180-6.png?alt=media)
