-
Notifications
You must be signed in to change notification settings - Fork 134
RCSS: Colours and backgrounds
Victor Luchits edited this page Jan 8, 2018
·
1 revision
color
| Property | Comment |
|---|---|
| Value: | <colour> |
| Initial: | black |
| Applies to: | all elements |
| Inherited: | yes |
| Percentages: | N/A |
This property sets the colour of rendered text and text decorations.
In RCSS, an element's background can be set as a flat colour but not an image. This functionality (and much more!) instead lies with decorators.
background-color
| Property | Comment |
|---|---|
| Value: | <colour> |
| Initial: | transparent |
| Applies to: | all elements |
| Inherited: | no |
| Percentages: | N/A |
This property sets the color of the element's generated boxes. The background colour is rendered under a box's padded area.
background
background is an alias for background-color.