height_relative: Relative height

View source: R/height-relative.R

height_relativeR Documentation

Relative height

Description

The height_relative() function adjusts a tag element's height relative to the height of its parent element.

Usage

height_relative(x, percent)

Arguments

x

A tag element or .style pronoun.

percent

A number specifying a percent. One of,

  • 25

  • 50

  • 75

  • 100

Value

An object of the same type as x.

Examples


library(htmltools)

div(
  .style %>%
    height_relative(50)
)

div(
  .style %>%
    height_relative(75)
)


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