diff --git a/docs/guide/styles.md b/docs/guide/styles.md index 270ad34cf..49820e67b 100644 --- a/docs/guide/styles.md +++ b/docs/guide/styles.md @@ -155,7 +155,7 @@ If you run this you will see the height of the widget now grows to accommodate t Textual offers a few different *units* which allow you to specify dimensions relative to the screen or container. Relative units can better make use of available space if the user resizes the terminal. -- Percentage units are given as a string containing a number followed by a percentage symbol, e.g. `"50%"`. Setting a dimension to a percentage unit will cause it to fit in that percentage of the available space. For instance, setting width to `"50%"` will cause the width of the widget to be half the available space. +- Percentage units are given as a string containing a number followed by a percentage symbol, e.g. `"50%"`. Setting a dimension to a percentage unit will size that dimension to that percentage of the *parent's* size in that dimension. For instance, setting width to `"50%"` will cause the width of the widget to be half the width of its parent. - View units are similar to percentage units, but explicitly reference a dimension. The `vw` unit sets a dimension to a percentage of the terminal *width*, and `vh` sets a dimension to a percentage of the terminal *height*. - The `w` unit sets a dimension to a percentage of the available width (which may be smaller than the terminal size if the widget is within another widget). - The `h` unit sets a dimension to a percentage of the available height.