added max-width support
added max-width support