If you're installing prefabricated panels, the spacing has to ... When building a wood fence from scratch, set all the posts in concrete before attaching the rails and slats.