Use max-width instead of width.