Who Gets the House in a Divorce?

Often at the time of divorce, both parties want to stay in the marital home. What happens then? How can you force one party to leave? If the home was