position_top: Position offset

View source: R/position-offset.R

position_topR Documentation

Position offset

Description

Use ⁠position_<side>()⁠ to adjust the position offset of a tag element.

Usage

position_top(x, offset)

position_left(x, offset)

position_bottom(x, offset)

position_right(x, offset)

Arguments

x

A tag element or .style pronoun.

offset

A number specifying a percent. One of,

0, 50, or 100

Value

An object of the same type as x.

Examples


library(htmltools)

div(
  .style %>%
    position("absolute") %>%
    position_right(0)
)


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