Adjust max-height and for margin.