RWT Theming Reference > Text

## Text

Single-line and multi-line text widgets

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color

- background-image

  Background image or gradient for text widget.

- border

  Border for text fields. Also used for spinner widget.

- border-radius

  Border radius. The border radius has no effect if an enhanced border, like "inset" or "outset" is used.

- color

  Text color

- font

  Text font

- padding

  Padding for single-line text fields. Also used for spinner.

### Applicable SWT Styles

SWT style flags that can be referred to in a selector for this element (as CSS attributes):

- [BORDER]

  Style constant for bordered behavior.

- [MULTI]

  Style constant for multy line text area behavior.

- [SINGLE]

  Style constant for single line text field behavior.

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to disabled Texts.

- :read-only

  Applies to text fields in read-only mode.

## Text-Message

The Text message. The message text is displayed as a hint for the user, indicating the purpose of the field.

### Available CSS Properties

Properties that can be defined for this element:

- color

  Text message color

### Applicable SWT Styles

none

### Applicable States

none