Function sauron::prelude::units::px[][src]

pub fn px<V>(v: V) -> String where
    V: Into<Value>, 
Expand description

pixels (1px = 1/96th of 1in)

a helper function which append px into a value Example:

use sauron::prelude::*;
use sauron::html::attributes::style;

let inline: Attribute<()> = style("width", px(100));