Update height reference.

This commit is contained in:
Rodrigo Girão Serrão
2022-12-21 22:21:39 +00:00
parent 03cbd50d6d
commit b22352874d

View File

@@ -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">&lt;scalar&gt;</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"