validateCssUnit(x)
validateCssUnit("10%") validateCssUnit(400) #treated as '400px'
Run the code above in your browser using DataCamp Workspace