mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
563 B
563 B
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.