Handle maxwidth amd width