From 9718d38323c3c18e5d7f1d2b5e1c7ecbb0c50f5c Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 15 Sep 2022 11:10:10 +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 fc4134938..96e6253bd 100644 --- a/docs/guide/styles.md +++ b/docs/guide/styles.md @@ -184,7 +184,7 @@ With the width set to `"50%"` and the height set to `"80%"`, the widget will kee ```{.textual path="docs/examples/guide/styles/dimensions03.py" columns="120" lines="40"} ``` -Percentage units are useful for widgets that occupy a relative portion of the screen, but it can be problematic for some proportions. For instance if we want to divide the screen in to thirds, we would have to set a dimension to `33.3333333333%` which is awkward. Textual supports `fr` units which is often better than percentage based units for these situations. +Percentage units are useful for widgets that occupy a relative portion of the screen, but they can be problematic for some proportions. For instance, if we want to divide the screen into thirds, we would have to set a dimension to `33.3333333333%` which is awkward. Textual supports `fr` units which are often better than percentage-based units for these situations. When specifying `fr` units for a given dimensions, Textual will divide the available space by the total `fr` units on a dimension. That space will then be divided amongst the widgets as a proportion of their individual `fr` value.