max with and margin top minimized