Function sauron::prelude::html::units::rem

source ·
pub fn rem(v: impl Into<Value>) -> String
Expand description

Relative to font-size of the root element

Example:

use sauron::html::units::*;

assert_eq!("10rem", rem(10));

MDN reference