mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
569 B
569 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;
- fractional – e.g., to set a widget's
opacity; - integer – e.g., to set the
grid-size; - percentage – e.g., to set the transparency of the background color; and
- scalar – e.g., to set the width of a widget.