added max-width support