Learn R Programming

xaringanExtra (version 0.8.0)

css_position: Helper to set absolute position of an element.

Description

Sets position for an absolutely positioned element. Setting one of top or bottom or one of left or right will "unset" the other. It's probably not a good idea to set both top and bottom or right and left.

Usage

css_position(top = "1em", right = "1em", left = NULL, bottom = NULL)

Value

An object of class css_position that describes top, right, bottom, and left positions.

Arguments

top, right, bottom, left

The position of the element in distance from the top, right, bottom, or left edge of it's container element.

Examples

Run this code
css_position(top = "1em", right = "1em") # top right corner
css_position(top = "1em", left = "1em") # top left corner
css_position(bottom = 0, right = 0) # bottom right corner

Run the code above in your browser using DataLab