Syntax
object-position
Setting the alignment of the selected replaced element within the element's box.
Overview
Class | Declarations |
---|---|
object-position:position | object-position: position;
|
obj:top | object-position: top;
|
obj:bottom | object-position: bottom;
|
obj:left | object-position: left;
|
obj:right | object-position: right;
|
obj:center | object-position: center;
|
Conditionally apply
Apply styles based on different states using selectors and applying conditionally.
<div class="object-position:top:hover object-position:top@sm object-position:top@dark object-position:top@print">…</div>