used max-width instead of width