In spite of the fact that child custody laws differ from state to state, there is one primary guiding rule that all divorce judges try to apply in custody disputes: They must act in the best interests of the children. Ask your attorney what factors the judge will consider, or take a look at these examples.