affix: Fixed position elements

View source: R/design-affix.R

affixR Documentation

Fixed position elements

Description

The affix utility function applies Bootstrap classes to fix elements to the top or bottom of a page. Use "sticky" to cause an element to fix to the top of a page after the element is scrolled past. Important, the IE11 and Edge browsers do not support the sticky behavior.

Usage

affix(x, position)

Arguments

x

A tag element or .style pronoun.

position

One of "top", "bottom", or "sticky" specifying the fixed behavior of an element.

See Also

Other design utilities: active(), background(), border(), display(), flex(), float(), font(), height(), margin(), padding(), scroll(), shadow(), width()


nteetor/yonder documentation built on June 8, 2022, 1:36 p.m.