Getting started
Resources
Flex
Spacing
Layout
Size
Typography
Background
Border
Transition
Utility classes for changing an element's background position property. Includes center, single axis, and double axis variants. Background position affects only the background image position similar to aligning an absolute element.
Classes for background position are named using the format: [bg]-[axis]-[position].
Where axis includes:
center - for background-position: centerx - for background-position-xy - for background-position-yxy - for background-position-x & background-position-yWhere position includes:
left - for background-position-x: left 0pxright - for background-position-x: right 0pxtop - for background-position-y: top 0pxbottom - for background-position-y: bottom 0pxbottom-left - for background-position-x: bottom 0px & background-position-y: left 0pxbottom-right - for background-position-x: bottom 0px & background-position-y: right 0pxtop-left - for background-position-x: top 0px & background-position-y: left 0pxtop-right - for background-position-x: top 0px & background-position-y: right 0px| Class | Contents |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Note that background-position: center is the default value for background position in Unity. Unless the value needs to be overridden from a parent, the bg-center class is not needed.
UXML
UXML
UXML
UXML
On this page