You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/layouts/nodes/margins.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ A `:margins` node puts transparent margins around its child allowing the current
20
20
21
21
These properties set the size of the node inside of the `:margins` node; they do not refer to the width of the margins. A value of 0 for either property means that the node will use the full space available to it in that dimension.
22
22
23
+
These values do not work like margins do in CSS. A value of `80` for `:cols` means that the `:margins` node will render its contents with a _maximum_ width of 80 columns and center it. The `:border` property below will only render borders if the size of the inner node (after applying `:cols`) is _smaller_ than the size of the `:margins` node.
24
+
23
25
`:border`
24
26
25
27
The [border style](#border-styles) for the borders around the node.
0 commit comments