The process of making the head of the mill completly perpendicular to the table, involves several steps, and is called "tramming" or "squaring the head". There are various procedures and instruments to do this; a little Googling will find you related web pages.
Here is one example