What is the distance vertically from one goal post to the other goal post for both college and pro football?

In the NFL the goal posts must be 18'6" across.