Function sauron_core::em
source · pub fn em<V>(v: V) -> Stringwhere
V: Into<Value>,
Expand description
Relative to the font-size of the element (2em means 2 times the size of the current font)
Example:
use jss::units::*;
assert_eq!("10em", em(10));