validateCssUnit function

Validate proper CSS formatting of a unit