Added functions to handle em and percent units