Skip to content

CSS: position ​

.--position-relative — position sem samsetjanlegur, alhliða flokkur — .--position-<value> — hægt að nota beint eða keðja við hvaða íhlut sem er (.instui-button.--position-relative).

Source: index.ts

Notkun ​

css
@import "@pantoken/components/utilities.css";

Dæmi ​

html
<div class="--position-relative">…</div>

Breytingar ​

BreytiLýsing
.--position-absoluteposition: absolute.
.--position-fixedposition: fixed.
.--position-relativeposition: relative.
.--position-staticposition: static.
.--position-stickyposition: sticky.