package tw

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tw.PositionSource

Position utilities for controlling element placement

https://tailwindcss.com/docs/position https://tailwindcss.com/docs/top-right-bottom-left

Position Utilities

Sourceval static : Utility.t

static sets position to static.

Sourceval relative : Utility.t

relative sets position to relative.

Sourceval absolute : Utility.t

absolute sets position to absolute.

Sourceval fixed : Utility.t

fixed sets position to fixed.

Sourceval sticky : Utility.t

sticky sets position to sticky.

Sourceval inset : int -> Utility.t

inset n sets all inset values.

Sourceval inset' : float -> Utility.t

inset' n is inset for a half-step scale value (e.g. inset' 0.5 for inset-0.5).

Sourceval inset_0 : Utility.t

inset_0 sets all inset values to 0.

Sourceval inset_x : int -> Utility.t

inset_x n sets horizontal inset (left and right).

Sourceval inset_x' : float -> Utility.t

inset_x' n is inset_x for a half-step scale value.

Sourceval inset_x_0 : Utility.t

inset_x_0 sets horizontal inset to 0.

Sourceval inset_y : int -> Utility.t

inset_y n sets vertical inset (top and bottom).

Sourceval inset_y' : float -> Utility.t

inset_y' n is inset_y for a half-step scale value.

Sourceval inset_y_0 : Utility.t

inset_y_0 sets vertical inset to 0.

Sourceval top : int -> Utility.t

top n sets top position.

Sourceval top' : float -> Utility.t

top' n is top for a half-step scale value.

Sourceval right : int -> Utility.t

right n sets right position.

Sourceval right' : float -> Utility.t

right' n is right for a half-step scale value.

Sourceval bottom : int -> Utility.t

bottom n sets bottom position.

Sourceval bottom' : float -> Utility.t

bottom' n is bottom for a half-step scale value.

Sourceval left : int -> Utility.t

left n sets left position.

Sourceval left' : float -> Utility.t

left' n is left for a half-step scale value.

Sourceval top_1_2 : Utility.t

top_1_2 sets top to 50%.

Sourceval left_1_2 : Utility.t

left_1_2 sets left to 50%.