From 0276f54e9bdaab58563266262ea2275181e0279f Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 15 Sep 2022 11:21:21 +0100 Subject: [PATCH] Update docs/guide/styles.md Co-authored-by: darrenburns --- docs/guide/styles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/styles.md b/docs/guide/styles.md index a76ccaaa3..52c613091 100644 --- a/docs/guide/styles.md +++ b/docs/guide/styles.md @@ -191,7 +191,7 @@ When specifying `fr` units for a given dimension, Textual will divide the availa Let's look at an example. We will create two widgets, one with a height of `"2fr"` and one with a height of `"1fr"`. ```python title="dimensions04.py" hl_lines="24-25" ---8<-- "docs/examples/guide/styles/dimensions02.py" +--8<-- "docs/examples/guide/styles/dimensions04.py" ``` The total `fr` units for height is 3. The first widget will have a screen height of two thirds because its height style is set to `2fr`. The second widget's height styles is `1fr` so its screen height will be a third. Here's what that looks like.