Padding - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki
The PADDING widget is used as a positioning tool to create an offset between itself and its parent/siblings.
- Overview
- Usage
- Attributes :: VisibleWidget (inherited attributes)
- Examples
- Other Widgets You May Find Useful:
To create space around or within widgets and reduce crowding
-
PADDINGis really useful to add more whitespace where widgets are crowded -
PADDINGshould be used to fine tune layouts and is supplemental to the more structured layout widgets
- Wrapping multiple children will layout within a
COLUMNand pad around that column.
Attributes :: VisibleWidget (inherited attributes)
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| all | int | null | The padding created on all sides of the widgets child. | |
| left | int | null | The padded space created on the left of the widget. | |
| right | int | null | The padded space created on the right of the widget. | |
| top | int | null | The padded space created on the top of the widget. | |
| bottom | int | null | The padded space created on the bottom of the widget. |
<FML>
<CENTER>
<BOX color="amber" expand="false">
<PADDING left="10" right="40" top="20" bottom="80">
<BOX color="black" width="400" height="400" />
</PADDING>
</BOX>
</CENTER>
</FML>