mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update height reference.
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
# Height
|
# Height
|
||||||
|
|
||||||
The `height` rule sets a widget's height. By default, it sets the height of the content area, but if `box-sizing` is set to `border-box` it sets the height of the border area.
|
The `height` rule sets a widget's height.
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
```
|
--8<-- "docs/snippets/syntax_block_start.md"
|
||||||
height: <SCALAR>;
|
height: <a href="../css_types/scalar.md"><scalar></a>;
|
||||||
```
|
--8<-- "docs/snippets/syntax_block_end.md"
|
||||||
|
|
||||||
|
The style `height` needs a [`<scalar>`](../css_types/scalar.md) to determine the vertical length of the widget.
|
||||||
|
By default, it sets the height of the content area, but if [`box-sizing`](./box_sizing) is set to `border-box` it sets the height of the border area.
|
||||||
|
|
||||||
|
### Values
|
||||||
|
|
||||||
--8<-- "docs/snippets/type_syntax/scalar.md"
|
--8<-- "docs/snippets/type_syntax/scalar.md"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user