RCSS ColorsBackgrounds

From FreeSpace Wiki
Revision as of 18:05, 22 April 2023 by MjnMixael (talk | contribs) (Created page with "==Foreground colour: the ‘color’ property== *color {| border=1 cellpadding=4 style="border-collapse: collapse" |- | Value: | <colour> |- | Initial: | black |- | Applies t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Foreground colour: the ‘color’ property

  • color
Value: <colour>
Initial: black
Applies to: all elements
Inherited: yes
Percentages: N/A

This property sets the colour of rendered text and text decorations.

Background colour

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
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
    • An alias for background-color.