logo

Function sauron::prelude::em

[]
pub fn em<V>(v: V) -> String where
    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));

MDN reference