height: Height

View source: R/design-sizing.R

heightR Documentation

Height

Description

Utility function to change a tag element's height. Heights are specified relative the height of a parent element, an element's content, or the size of the browser window.

Usage

height(x, size)

Arguments

x

A tag element or .style pronoun.

size

A character string or number specifying the height of the tag element. Possible values:

One of 25, 50, 75, 100 specifying the element's height as a percentage of its parent's height. The height of the parent element must also be specified. Percentages do not account for margins or padding and may cause an element to extend beyond its parent element.

"auto", in which case the element's height is determined by the browser. The browser will take into account the height, padding, margins, and border of the tag element's parent to keep the element from extending beyond its parent.

"viewport", in which case the element's height is determined by the size of the browser window.

See Also

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


nteetor/dull documentation built on June 10, 2022, 11:30 a.m.