Learn R Programming

cascadess (version 0.1.0)

float: Floats

Description

The float() function places an element to the left or right side of its parent element. Other text and inline elements wrap around floated elements. Note, float() has no effect on flex items.

Usage

float(x, side)

Arguments

x

A tag element or .style pronoun.

side

A responsive argument.

One of "left", "left", "right", "right", or "none" specifying the side to float the element.

Examples

Run this code
# NOT RUN {
library(htmltools)

div(
  div(
    .style %>%
      border("red") %>%
      float("left"),
    "Warning"
  ),
  div(
    "Nam a sapien.",
    "Phasellus neque orci, porta a, aliquet quis, semper a, massa.",
    "Phasellus lacus."
  )
)

# }

Run the code above in your browser using DataLab