Files
textual/docs/styles/css_units/index.md
Rodrigo Girão Serrão 2f99225abe Add text style unit to docs.
2022-12-20 14:50:32 +00:00

563 B
Raw Blame History

CSS units

Many CSS rules accept units of some sort, as opposed to a set of values.

The different CSS units are:

  • color e.g., to set the background color of a widget;
  • fractional e.g., to set the opacity of a widget;
  • integer e.g., to set the size of a grid layout;
  • percentage e.g., to set the transparency of colors;
  • scalar e.g., to set the dimensions of a widget; and
  • text style e.g., to style the text of a widget.