position: Positioning elements

View source: R/position.R

positionR Documentation

Positioning elements

Description

The ⁠position_*()⁠ functions adjust set the position of an element.

Usage

position(x, method)

Arguments

x

A tag element or .style pronoun.

method

A character string specifying the positioning method. One of,

  • "static"

  • "relative"

  • "absolute"

  • "fixed"

  • "sticky"

Value

An object of the same type as x.

See Also

Other position utilities: position_centered(), position_sticky()

Examples


library(htmltools)

div(
  .style %>%
    position("absolute") %>%
    position_top(50)
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.