link to diagram

This commit is contained in:
Will McGugan
2022-09-15 11:15:28 +01:00
parent 9d7e58cfd3
commit b617878067

View File

@@ -277,7 +277,7 @@ When you set padding or border it reduces the size of the widget's content area.
This is generally desirable when you arrange things on screen as you can add border or padding without breaking your layout. Occasionally though you may want to keep the size of the content area constant and grow the size of the widget to fit padding and border. The [box-sizing](../styles/box_sizing.md) style allows you to switch between these two modes.
If you set `box_sizing` to `"content-box"` then space required for padding and border will be added to the widget dimensions. The default value of `box_sizing` is `"border-box"`. Compare the box model diagram for content box to the previous box model diagram.
If you set `box_sizing` to `"content-box"` then space required for padding and border will be added to the widget dimensions. The default value of `box_sizing` is `"border-box"`. Compare the box model diagram for content box to the previous [box model](#box-model) diagram.
<div class="excalidraw">
--8<-- "docs/images/styles/content_box.excalidraw.svg"