balasters must be spaced in order for a 4 inch diameter ball NOT to pass between each balaster. Same spacing as required on a baby bed. If a ball passes through, the balaster or deck is NOT up to code.
Railing height is 42 inches.
Remember this is my code and code requirments, MAY NOT be in your area.