Durable, height-appropriate fences with no gaps at the bottom are best to keep pets safe and contained.