This section explains style properties for screen widgets.
Refer to 4.1.2.2 Style Settings if you want to know about specifying style properties.
Also, if the style properties are omitted, the browser's default values are used.
Note
If an invalid value is specified in style properties, the setting is ignored.
Point
Style property names for the whole widget
For example, names of style properties for the whole widget are as follows:
color: Specification of color
backgroundColor: Specification of background color
fontSize: Specification of font size.
Style property names for specific widget parts
A style property name for a specific screen widget part consists of a prefix followed by the style property name with no space in between, as follows:
[Prefix][Property name start with an uppercase]
For example, for the title part:
titleColor: Specification of title part color
titleBackgroundColor: Specification of title part background color
titleFontSize: Specification of title part font size.
Size
Name | Description |
---|---|
width | Specifies the widget width. |
height | Specifies the widget height. |
Color
Name | Description |
---|---|
color | Specifies the character color. |
backgroundColor | Specifies the background color. |
Font
Name | Description |
---|---|
fontFamily | Specifies the character display font. |
fontSize | Specifies the character size. |
fontStyle | Specifies the font style like Italic. |
fontWeight | Specifies the font weight. |
lineHeight | Specify the amount of vertical space between lines of text. |
Text
Name | Description |
---|---|
textIndent | Specifies the width to indent the first line. |
textAlign | Specifies the text alignment. |
textDecoration | Specifies the text decoration. |
letterSpacing | Specifies the amount of space between letters. |
wordSpacing | Specifies the amount of space between words. |
whiteSpace | Specifies the way in which spaces are handled. |
Border
Name | Description |
---|---|
borderWidth | Specifies the border width. |
borderStyle | Specifies the border style. |
borderColor | Specifies the border color. |
Padding
Name | Description |
---|---|
padding | Specifies the padding. |
Margins
Name | Description |
---|---|
margin | Specifies the margin. |
Position
Name | Description |
---|---|
position | Specifies how an element is positioned. |
top | Specifies how far from the top of the parent element. |
right | Specifies how far from the right of the parent element. |
bottom | Specifies how far from the bottom of the parent element. |
left | Specifies how far from the left of the parent element. |
Overflow
Name | Description |
---|---|
overflow | Specifies the behavior on overflow. |
Cell
Name | Description |
---|---|
textAlign | Specifies the text alignment. |
verticalAlign | Specifies the vertical alignment of content inside table cells. |
whiteSpace | Specifies how whitespace characters should be handled. |