RWT Theming Reference > Label

## Label

SWT Labels. Labels are simple widgets that can contain either text or an image.

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for labels.

- background-image

  Background image or gradient for labels.

- background-position

  Background image position for labels.

- background-repeat

  Background image repetition for labels.

- border

  The border that is drawn around a Label.

- border-bottom

  The bottom side border for labels.

- border-left

  The left side border for labels.

- border-radius

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

- border-right

  The right side border for labels.

- border-top

  The top side border for labels.

- color

  Text color for labels.

- cursor

  Control's cursor.

- font

  Text font for labels.

- opacity

  The opacity of the label. A value between 0 and 1.

- padding

  Padding (inner distance) for labels.

- text-decoration

  Decoration for label text.

- text-shadow

  Shadow for text.

### Applicable SWT Styles

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

- [BORDER]

  Indicates that the widget should have a border.

- [SEPARATOR]

  Represents SWT Labels with style SWT.SEPARATOR.

### Applicable States

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

- :disabled

  Applies to disabled labels.

- :hover

  Applies to widgets while the cursor hovers over them.

## Label-SeparatorLine

The separator line.

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for the separator line.

- background-image

  Background image or gradient for the separator line.

- border

  The border that is drawn for separator line.

- border-bottom

  The bottom side border for for separator line.

- border-left

  The left side border for for separator line.

- border-radius

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

- border-right

  The right side border for for separator line.

- border-top

  The top side border for for separator line.

- width

  Represents the width of the separator line if it's vertical or the height, if it's horizontal.

### Applicable SWT Styles

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

- [SHADOW_IN]

  Indicates that the separator should have a shadow-in border.

- [SHADOW_NONE]

  Indicates that the separator should have a plain border.

- [SHADOW_OUT]

  Indicates that the separator should have a shadow-in border.

### Applicable States

none